Project

General

Profile

« Previous | Next » 

Revision 3195

db_xml.py: put_table(): Moved in_row_ct updating to Subsetting section so the cursor's rowcount can be used directly

View differences:

db_xml.py
178 178
            this_ct = cur.rowcount
179 179
            total += this_ct
180 180
            start += this_ct # advance start to fetch next set
181
            if this_ct == 0: break # if in_table size is exact multiple of limit
181
            if this_ct == 0: break # in_table size is multiple of partition_size
182 182
            
183 183
            sql.add_pkey(db, in_table)
184 184
            
185 185
            # Recurse
186 186
            pkeys_loc = put_table_(node, in_row_ct_ref)
187
            if in_row_ct_ref != None: in_row_ct_ref[0] += this_ct
187 188
            
188 189
            sql.empty_temp(db, in_table)
189 190
            
......
270 271
    parent_ids_loc = pkeys_loc # applies to this section
271 272
    for child in children: put_table_(child)
272 273
    
273
    # Count # rows and update in_row_ct_ref once all columns have been processed
274
    if in_row_ct_ref != None:
275
        in_row_ct_ref[0] += sql.table_row_count(db, in_table)
276
    
277 274
    return pkeys_loc

Also available in: Unified diff