mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-08-17 03:23:38 +00:00
docs(parser): point the page-size comment at the files that exist
This commit is contained in:
@@ -50,8 +50,9 @@ func OpenDB(dbPath string) (*sql.DB, error) {
|
||||
// file a page at a time over HTTP: a row fetched by index seek costs one
|
||||
// page, so a search that returns 100 scattered rows transfers 100 KB
|
||||
// instead of 400 KB. It costs about 5% file size, and both sql.js-httpvfs
|
||||
// and sqlite-wasm-http recommend it. web/src/lib/sqlite.svelte.ts must
|
||||
// request the same size.
|
||||
// and sqlite-wasm-http recommend it. web/src/lib/sqlite.svelte.js must
|
||||
// request the same size, and web/src/lib/db-probe.js warns when a published
|
||||
// database disagrees with it.
|
||||
if _, err := db.Exec("PRAGMA page_size = 1024"); err != nil {
|
||||
db.Close()
|
||||
return nil, fmt.Errorf("set page size: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user