WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69620
IndexedDB: Remove SQLite backing store
https://bugs.webkit.org/show_bug.cgi?id=69620
Summary
IndexedDB: Remove SQLite backing store
Hans Wennborg
Reported
2011-10-07 06:03:21 PDT
IndexedDB: Remove SQLite backing store
Attachments
Patch
(74.42 KB, patch)
2011-10-07 06:07 PDT
,
Hans Wennborg
no flags
Details
Formatted Diff
Diff
Patch
(74.28 KB, patch)
2011-10-11 03:58 PDT
,
Hans Wennborg
no flags
Details
Formatted Diff
Diff
Patch
(74.38 KB, patch)
2011-10-12 02:34 PDT
,
Hans Wennborg
fishd
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Hans Wennborg
Comment 1
2011-10-07 06:07:04 PDT
Created
attachment 110133
[details]
Patch
WebKit Review Bot
Comment 2
2011-10-07 06:09:49 PDT
Please wait for approval from
fishd@chromium.org
before submitting because this patch contains changes to the Chromium public API.
Joshua Bell
Comment 3
2011-10-10 16:31:32 PDT
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) ?
Darin Fisher (:fishd, Google)
Comment 4
2011-10-10 21:52:57 PDT
Comment on
attachment 110133
[details]
Patch R- based on jsbell's feedback
Hans Wennborg
Comment 5
2011-10-11 03:55:08 PDT
(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.
Hans Wennborg
Comment 6
2011-10-11 03:58:06 PDT
Created
attachment 110494
[details]
Patch
Joshua Bell
Comment 7
2011-10-11 10:01:09 PDT
Comment on
attachment 110494
[details]
Patch LGTM
David Grogan
Comment 8
2011-10-11 13:12:43 PDT
Should we plan on keeping the @1 in perpetuity? If so we should abstract it out instead of leaving the magic constant.
Joshua Bell
Comment 9
2011-10-11 13:13:40 PDT
(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.
Hans Wennborg
Comment 10
2011-10-12 02:33:17 PDT
(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.
Hans Wennborg
Comment 11
2011-10-12 02:34:56 PDT
Created
attachment 110656
[details]
Patch
David Grogan
Comment 12
2011-10-12 10:00:13 PDT
LGTM
Hans Wennborg
Comment 13
2011-10-13 01:45:05 PDT
Darin: would you like to take another look?
Darin Fisher (:fishd, Google)
Comment 14
2011-10-14 01:36:07 PDT
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.
Hans Wennborg
Comment 15
2011-10-14 02:14:48 PDT
Committed
r97453
: <
http://trac.webkit.org/changeset/97453
>
Donggwan Kim
Comment 16
2011-11-10 18:40:42 PST
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.
Hans Wennborg
Comment 17
2011-11-11 04:19:41 PST
(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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug