pg migration: 3 days -> several hours

This commit is contained in:
Alex Gleason 2024-08-12 15:54:56 -05:00
parent e743e14bb1
commit c4064d0fa6
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -75,8 +75,7 @@ export async function up(db: Kysely<any>): Promise<void> {
let iid: number | undefined; let iid: number | undefined;
const tid = setTimeout(() => { const tid = setTimeout(() => {
console.warn(`Recreating the database to improve performance. console.warn(`Recreating the database to improve performance. This will take several hours.
Depending on the size of your database, this could take a very long time, possibly days!
If you don't want to wait, you can create a fresh database and then import your old events: If you don't want to wait, you can create a fresh database and then import your old events: