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:
Ilya Kreymer 2025-02-24 12:29:02 -08:00 committed by GitHub
parent 8a507f0473
commit 83180efac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()