Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Issue 2710203002: Revert of IndexedDB: Optimize range deletion operations (e.g. clearing a store) (Closed)

Created:
3 years, 10 months ago by keishi
Modified:
3 years, 10 months ago
Reviewers:
jsbell, cmumford, dmurph
CC:
chromium-reviews, jam, jsbell+idb_chromium.org, darin-cc_chromium.org, cmumford
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of IndexedDB: Optimize range deletion operations (e.g. clearing a store) (patchset #1 id:1 of https://codereview.chromium.org/2708223002/ ) Reason for revert: Possibly related to indexdb test failures https://bugs.chromium.org/p/chromium/issues/detail?id=693048 Original issue's description: > IndexedDB: Optimize range deletion operations (e.g. clearing a store) > > Range deletion in leveldb involves walking over the range to identify > keys to remove. The wrapper class used by IndexedDB to implement > transactions was applying this same logic, which was inefficient due > to (1) complexity in walking two iterators (one for the uncommitted > transaction data and one for the backing store data) and (2) notifying > iterators for every record. > > This was optimized by clearing the range in the uncommitted data > first, then simply walking the range in the backing store, and > deferring notifying iterators until the end. This required removing > the |delete_count| out param plumbed through various methods, but it > was only used in tests. > > On a test for clearing a store with 100k index entries, a 4x speedup > was observed. > > BUG=693799 > TEST=content_unittests --gtest_filter='LevelDBTransactionTest.*' > > Review-Url: https://codereview.chromium.org/2708223002 > Cr-Commit-Position: refs/heads/master@{#452324} > Committed: https://chromium.googlesource.com/chromium/src/+/339d49e89f42347c7b85ac31cb0e9ebd8163025d TBR=cmumford@chromium.org,dmurph@chromium.org,jsbell@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=693799 Review-Url: https://codereview.chromium.org/2710203002 Cr-Commit-Position: refs/heads/master@{#452442} Committed: https://chromium.googlesource.com/chromium/src/+/a9e4f703d78e0cf23ecba81eced44ec3a9712bec

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -432 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 10 chunks +37 lines, -12 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 4 chunks +22 lines, -10 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.h View 2 chunks +4 lines, -15 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.cc View 2 chunks +1 line, -24 lines 0 comments Download
D content/browser/indexed_db/leveldb/leveldb_transaction_unittest.cc View 1 chunk +0 lines, -368 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_unittest.cc View 2 chunks +159 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
keishi
Created Revert of IndexedDB: Optimize range deletion operations (e.g. clearing a store)
3 years, 10 months ago (2017-02-23 09:38:33 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710203002/1
3 years, 10 months ago (2017-02-23 09:38:50 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/a9e4f703d78e0cf23ecba81eced44ec3a9712bec
3 years, 10 months ago (2017-02-23 09:40:17 UTC) #6
keishi
Failed bots https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Linux%20Trusty%20MSAN/builds/646 https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Win7/builds/50522 https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Linux%20Trusty/builds/23639 https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Win7%20%28dbg%29/builds/9101 ...
3 years, 10 months ago (2017-02-23 09:42:58 UTC) #7
keishi
crbug.com/695371
3 years, 10 months ago (2017-02-23 09:44:04 UTC) #8
jsbell
3 years, 10 months ago (2017-02-23 17:33:30 UTC) #9
Message was sent while issue was closed.
On 2017/02/23 09:44:04, keishi wrote:
> crbug.com/695371

Thanks for the revert!

Powered by Google App Engine
This is Rietveld 408576698