remove dropping page index on migrations (#2418)
Don't need it for now, and this will now be slow due to amount of pages. Can readd in future migrations if we need it.. --------- Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
This commit is contained in:
parent
8a507f0473
commit
83180efac9
@ -195,6 +195,11 @@ async def drop_indexes(mdb):
|
||||
print("Dropping database indexes", flush=True)
|
||||
collection_names = await mdb.list_collection_names()
|
||||
for collection in collection_names:
|
||||
# Don't drop pages automatically, as these are large
|
||||
# indices and slow to recreate
|
||||
if collection == "pages":
|
||||
continue
|
||||
|
||||
try:
|
||||
current_coll = mdb[collection]
|
||||
await current_coll.drop_indexes()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user