Closed Bug 573856 Opened 15 years ago Closed 9 years ago

Optimize sqlite for whole-db-reading usecase

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: taras.mozilla, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

A bunch of our databases(eg cookies, downloads) read whole db contents right after opening the db. Would be nice to be able to tell sqlite to tell the OS to cache these accordingly. Ie use fadvise/readahead on unix and FILE_FLAG_SEQUENTIAL_SCAN on windows.
No longer blocks: 572460
Depends on: 572460
(In reply to comment #0) > A bunch of our databases(eg cookies, downloads) read whole db contents right > after opening the db. FWIW, they shouldn't be and we should be fixing that. Downloads shouldn't be hard to fix if it is doing that, and I think dwitte is already working on a fix for cookies. Can you file a bug on the components that are doing this please?
I'm willing to start working on that if someone can point me to one specific case.
if consumers do that, they should not be using mozStorage. A JSON store is a better target. We should not optimize for broken consumers.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Note for anyone thinking of fixing consumers: cookies probably wouldn't want to switch to a pure JSON store, but it is a weird use-case that potentially needs some fundamental re-architecting to not store the entirety of a user's cookie store in memory at all times. Disturbingly, the mork "database" format would be a great fit for cookies' needs.
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.