Conversation
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
|
@r1tsuu Thanks for this, I was just looking at Payload SQLite for the functionality. Can I suggest you also add a busy_timeout config together with this? A few additional pragmas would make this fully production-ready:
Example config with all options: db: sqliteAdapter({
client: { url: process.env.DATABASE_URI },
wal: true,
synchronous: 'NORMAL',
journalSizeLimit: 67108864,
busyTimeout: 5000,
cacheSize: -65536,
mmapSize: 134217728,
tempStore: 'MEMORY',
autoVacuum: 'INCREMENTAL',
})One question: are session pragmas ( |
busyTimeout option
This reverts commit 28789f1.
busyTimeout option|
@VlatkoGoljevacki I opened a separate PR for busy timeout since it's not related to WAL #15317 |
Thanks man, great job! |
|
🚀 This is included in version v3.73.0 |
Adds support for WAL mode.
Fixes #9290
Settings for the
waloption:journalSizeLimit67108864(64MB)synchronousEXTRA,FULL,NORMAL,OFF. Controls balance of performance vs. data safety.'FULL'