mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
optimize the batch update script to use index by adding order by user_id
This commit is contained in:
parent
f467681189
commit
431640605f
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ def batch_update_library_items(conn):
|
|||
SELECT ctid
|
||||
FROM omnivore.library_item
|
||||
WHERE original_content IS NOT NULL
|
||||
ORDER BY user_id
|
||||
LIMIT {batch_size}
|
||||
)
|
||||
""")
|
||||
|
|
|
|||
Loading…
Reference in a new issue