File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ export async function importV1BnsData(db: PgDataStore, importDir: string) {
430
430
const client = await db . pool . connect ( ) ;
431
431
try {
432
432
await client . query ( 'BEGIN' ) ;
433
- // Temporarily disable BNS table indices to speed up INSERTs.
433
+ logger . info ( `Disabling BNS table indices temporarily for a faster import` ) ;
434
434
await client . query ( `
435
435
UPDATE pg_index
436
436
SET indisready = false, indisvalid = false
@@ -476,7 +476,7 @@ export async function importV1BnsData(db: PgDataStore, importDir: string) {
476
476
} ;
477
477
await db . updateConfigState ( updatedConfigState , client ) ;
478
478
479
- // Re-enable indices
479
+ logger . info ( ` Re-indexing BNS tables. This might take a while...` ) ;
480
480
await client . query ( `REINDEX TABLE subdomains` ) ;
481
481
await client . query ( `REINDEX TABLE zonefiles` ) ;
482
482
await client . query ( `REINDEX TABLE namespaces` ) ;
You can’t perform that action at this time.
0 commit comments