Summary: | IndexedDB: Remove SQLite backing store | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Hans Wennborg <hans> | ||||||||
Component: | New Bugs | Assignee: | Hans Wennborg <hans> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | dgrogan, donggwan.kim, fishd, jsbell, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Hans Wennborg
2011-10-07 06:03:21 PDT
Created attachment 110133 [details]
Patch
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API. Comment on attachment 110133 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110133&action=review > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:47 > + return securityOrigin->databaseIdentifier(); Won't this mean the user will lose existing LevelDB-backed IndexedDBs, since the file identifier will change? (i.e. should we use a "@1" suffix until we intentionally break LevelDB store compatibility?) > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:102 > + const String fileIdentifier = computeFileIdentifier(securityOrigin.get()); This instance of fileIdentifier is unused and can be removed. (Leftover from a previous refactor, my fault) > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:132 > #if USE(LEVELDB) Planning on a follow-up CL for eliminating USE(LEVELDB) ? Comment on attachment 110133 [details]
Patch
R- based on jsbell's feedback
(In reply to comment #3) > > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:47 > > + return securityOrigin->databaseIdentifier(); > > Won't this mean the user will lose existing LevelDB-backed IndexedDBs, since the file identifier will change? (i.e. should we use a "@1" suffix until we intentionally break LevelDB store compatibility?) You're right! I wasn't thinking. Good catch. > > > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:102 > > + const String fileIdentifier = computeFileIdentifier(securityOrigin.get()); > > This instance of fileIdentifier is unused and can be removed. (Leftover from a previous refactor, my fault) Removed. > > > Source/WebCore/storage/IDBFactoryBackendImpl.cpp:132 > > #if USE(LEVELDB) > > Planning on a follow-up CL for eliminating USE(LEVELDB) ? Yes. Not decided on the details yet, though. Created attachment 110494 [details]
Patch
Comment on attachment 110494 [details]
Patch
LGTM
Should we plan on keeping the @1 in perpetuity? If so we should abstract it out instead of leaving the magic constant. (In reply to comment #8) > Should we plan on keeping the @1 in perpetuity? If so we should abstract it out instead of leaving the magic constant. +1 - At the very least, a comment explaining what it means and when to touch it. (In reply to comment #8) > Should we plan on keeping the @1 in perpetuity? If so we should abstract it out instead of leaving the magic constant. Right. Sticking it in a carefully named variable. Created attachment 110656 [details]
Patch
LGTM Darin: would you like to take another look? Comment on attachment 110656 [details]
Patch
R=me
Apologies for the delay! Please feel free to send me direct email in the future when you are stuck waiting on me.
Committed r97453: <http://trac.webkit.org/changeset/97453> I have a question about this patch. I'm developing IndexedDB implementation for JSC using SQLiteBackingStore. is there any reason for removing SQLiteBackingStore? is that discussed in webkit dev community? If so, i've missed it. please let me know about this patch history. (In reply to comment #16) > I have a question about this patch. I'm developing IndexedDB implementation for JSC using SQLiteBackingStore. is there any reason for removing SQLiteBackingStore? It was removed because it was unused. We did not want to maintain an unused back-end, and there were features in IndexedDB (such as compound keys), for which we did not have a plan for how to implement using SQLite. Can you switch to using the LevelDB backing store instead? > is that discussed in webkit dev community? If so, i've missed it. please let me know about this patch history. I apologize for not raising this on the mailing list. We don't generally hear much about the IndexedDB implementation, so it was my impression that no-one was dependent on this code. |