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

Issue 1302813003: impl/memory: Implement Queries (Closed)

Created:
5 years, 4 months ago by iannucci
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://github.com/luci/gae.git@add_multi_iterator
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix kindless ancestor queries #

Patch Set 3 : Code complete? No tests, but it might just be The End... #

Patch Set 4 : a few more little bits #

Patch Set 5 : refactor invert/bjoin #

Patch Set 6 : increment too #

Patch Set 7 : clarify comments #

Patch Set 8 : existing tests passing again #

Patch Set 9 : Baby's first query! #

Total comments: 49

Patch Set 10 : inequalities work now #

Total comments: 8

Patch Set 11 : kindless queries work #

Patch Set 12 : Fix comments and simpler/better index selection #

Patch Set 13 : compound indexes work #

Patch Set 14 : Project and Distinct work as well #

Patch Set 15 : Allow maybeAddIndex to early abort if it finds a superset od fhe right indicies #

Patch Set 16 : Move dedup logic to keysOnly and normal strategies #

Patch Set 17 : more tests #

Patch Set 18 : remove bug #

Patch Set 19 : more tests #

Patch Set 20 : more cursor/ancestor tests #

Patch Set 21 : Merge https://codereview.chromium.org/1302813003 into this CL #

Patch Set 22 : improvements and docs #

Patch Set 23 : minor fixes #

Total comments: 67

Patch Set 24 : address comments #

Patch Set 25 : remove limit double-set restriction #

Total comments: 4

Patch Set 26 : fixes #

Patch Set 27 : stringSet everywhere #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3104 lines, -843 lines) Patch
M impl/memory/README.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +365 lines, -114 lines 0 comments Download
A impl/memory/binary_tools.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +65 lines, -0 lines 0 comments Download
M impl/memory/context.go View 1 chunk +2 lines, -0 lines 0 comments Download
M impl/memory/datastore.go View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -21 lines 0 comments Download
M impl/memory/datastore_data.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 17 chunks +43 lines, -53 lines 0 comments Download
M impl/memory/datastore_index.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 9 chunks +99 lines, -112 lines 0 comments Download
A impl/memory/datastore_index_selection.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +541 lines, -0 lines 0 comments Download
M impl/memory/datastore_index_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 14 chunks +118 lines, -97 lines 0 comments Download
M impl/memory/datastore_query.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 17 chunks +311 lines, -147 lines 0 comments Download
A impl/memory/datastore_query_execution.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +238 lines, -0 lines 0 comments Download
A impl/memory/datastore_query_execution_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +359 lines, -0 lines 0 comments Download
M impl/memory/datastore_query_test.go View 1 2 3 4 5 6 7 8 3 chunks +357 lines, -126 lines 0 comments Download
M impl/memory/datastore_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -7 lines 0 comments Download
M impl/memory/doc.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
A impl/memory/error_markers.go View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M impl/memory/gkvlite_iter.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +124 lines, -41 lines 0 comments Download
M impl/memory/gkvlite_iter_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +203 lines, -39 lines 0 comments Download
M impl/memory/gkvlite_utils.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -21 lines 0 comments Download
M impl/memory/gkvlite_utils_test.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A impl/memory/stringset.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +39 lines, -0 lines 0 comments Download
M impl/memory/taskqueue_data.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +10 lines, -5 lines 0 comments Download
M impl/memory/testing_utils_test.go View 1 2 3 4 5 6 7 8 9 10 4 chunks +55 lines, -2 lines 0 comments Download
M service/datastore/datastore.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M service/datastore/index.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +57 lines, -9 lines 0 comments Download
M service/datastore/properties.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -1 line 0 comments Download
M service/datastore/serialize/invertible.go View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M service/datastore/serialize/invertible_test.go View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M service/datastore/serialize/serialize.go View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +18 lines, -27 lines 0 comments Download
M service/datastore/serialize/serialize_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (2 generated)
iannucci
5 years, 4 months ago (2015-08-20 10:28:44 UTC) #1
iannucci
On 2015/08/20 10:28:44, iannucci wrote: Not sufficiently tested, but I don't expect the code that's ...
5 years, 4 months ago (2015-08-20 10:29:22 UTC) #2
iannucci
https://chromiumcodereview.appspot.com/1302813003/diff/1/impl/memory/datastore_index_selection.go File impl/memory/datastore_index_selection.go (right): https://chromiumcodereview.appspot.com/1302813003/diff/1/impl/memory/datastore_index_selection.go#newcode18 impl/memory/datastore_index_selection.go:18: type reducedQuery struct { this structure is the key ...
5 years, 4 months ago (2015-08-20 10:32:13 UTC) #3
iannucci
Ok, this CL got a bit bigger, but I think this is actually all that's ...
5 years, 4 months ago (2015-08-22 05:42:48 UTC) #4
iannucci
On 2015/08/22 05:42:48, iannucci wrote: > Ok, this CL got a bit bigger, but I ...
5 years, 4 months ago (2015-08-22 13:02:43 UTC) #5
dnj (Google)
So far looks solid. I haven't had a chance to look at index selection yet, ...
5 years, 4 months ago (2015-08-23 06:50:07 UTC) #7
iannucci
Thanks for the early review :) https://chromiumcodereview.appspot.com/1302813003/diff/150001/impl/memory/datastore_index_selection.go File impl/memory/datastore_index_selection.go (right): https://chromiumcodereview.appspot.com/1302813003/diff/150001/impl/memory/datastore_index_selection.go#newcode17 impl/memory/datastore_index_selection.go:17: // reducedQuery contains ...
5 years, 4 months ago (2015-08-23 18:19:43 UTC) #8
iannucci
Ok. I declare this sufficiently tested. I didn't get every single nook and cranny, but ...
5 years, 4 months ago (2015-08-25 00:21:06 UTC) #9
iannucci
OK, rewrote the ancient README.md to have lots of details about what the heck is ...
5 years, 3 months ago (2015-08-26 04:22:24 UTC) #10
dnj
Posting in multiple waves b/c apparently Rietveld doesn't persist comments between browser sessions. This is ...
5 years, 3 months ago (2015-08-28 16:37:54 UTC) #11
dnj (Google)
I think that's everything. https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/README.md File impl/memory/README.md (right): https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/README.md#newcode92 impl/memory/README.md:92: ### Index Tables Comment about ...
5 years, 3 months ago (2015-08-28 17:54:22 UTC) #12
iannucci
Thanks, PTAL https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/README.md File impl/memory/README.md (right): https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/README.md#newcode26 impl/memory/README.md:26: compared only using bytes.Compare (aka `memcmp`). This ...
5 years, 3 months ago (2015-08-28 19:48:56 UTC) #13
dnj
https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/datastore_index_selection.go File impl/memory/datastore_index_selection.go (right): https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/datastore_index_selection.go#newcode299 impl/memory/datastore_index_selection.go:299: remains.SortBy = remains.SortBy[:len(remains.SortBy)-1] On 2015/08/28 at 19:48:55, iannucci wrote: ...
5 years, 3 months ago (2015-08-28 19:57:53 UTC) #14
iannucci
On 2015/08/28 at 19:57:53, dnj wrote: > https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/datastore_index_selection.go > File impl/memory/datastore_index_selection.go (right): > > https://chromiumcodereview.appspot.com/1302813003/diff/430001/impl/memory/datastore_index_selection.go#newcode299 ...
5 years, 3 months ago (2015-08-28 20:02:12 UTC) #15
dnj
lgtm w/ some nits https://chromiumcodereview.appspot.com/1302813003/diff/470001/impl/memory/datastore_index_selection.go File impl/memory/datastore_index_selection.go (right): https://chromiumcodereview.appspot.com/1302813003/diff/470001/impl/memory/datastore_index_selection.go#newcode209 impl/memory/datastore_index_selection.go:209: // getRelevantIndicies retrieves the relevant ...
5 years, 3 months ago (2015-08-28 20:15:04 UTC) #16
iannucci
https://chromiumcodereview.appspot.com/1302813003/diff/470001/impl/memory/datastore_index_selection.go File impl/memory/datastore_index_selection.go (right): https://chromiumcodereview.appspot.com/1302813003/diff/470001/impl/memory/datastore_index_selection.go#newcode209 impl/memory/datastore_index_selection.go:209: // getRelevantIndicies retrieves the relevant indexes which could be ...
5 years, 3 months ago (2015-08-28 20:38:50 UTC) #17
dnj
> Done and added some other goodies. Great, that's more or less exactly what I ...
5 years, 3 months ago (2015-08-28 23:21:35 UTC) #18
iannucci
On 2015/08/28 at 23:21:35, dnj wrote: > > Done and added some other goodies. > ...
5 years, 3 months ago (2015-08-29 00:11:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1302813003/510001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1302813003/510001
5 years, 3 months ago (2015-08-29 00:11:46 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-08-29 00:13:57 UTC) #22
Message was sent while issue was closed.
Committed patchset #27 (id:510001) as
https://github.com/luci/gae/commit/34775cb901c24926e3de841e4f95907866c0e21e

Powered by Google App Engine
This is Rietveld 408576698