make sharding 100x faster
... by *using* the (name, deleted) index Change-Id: Ifc358672ebd82b93ac6f5afa3f1f5dce9af9706e
This commit is contained in:
parent
74356fc3cc
commit
867757aaa0
|
@ -1104,6 +1104,8 @@ class ContainerBroker(DatabaseBroker):
|
|||
query_conditions.append('+deleted = 0')
|
||||
else:
|
||||
query_conditions.append('deleted = 0')
|
||||
else:
|
||||
query_conditions.append('deleted in (0, 1)')
|
||||
if since_row:
|
||||
query_conditions.append('ROWID > ?')
|
||||
query_args.append(since_row)
|
||||
|
|
Loading…
Reference in New Issue