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

Side by Side Diff: go/src/infra/gae/libs/wrapper/memory/schema

Issue 1152383003: Simple memory testing for gae/wrapper (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@better_context_lite
Patch Set: fixes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 index row encoding
M-A Ruel 2015/05/25 18:21:10 This should go in README.md
iannucci 2015/05/27 19:33:32 done, added more words too
2 ints ->
3 funnybase
4 floats -> http://stereopsis.com/radix.html
5 b := math.Float64bits(f)
6 return b ^ (-(b >> 63) | 0x8000000000000000)
7
8 return math.Float64frombits(b ^ ((b >> 63) - 1) | 0x800000000000 0000)
9
10 index types:
11 primary: (key -> entity)
12 kind: (kind | key -> nil)
13 prop: (kind | prop | val | key -> nil)
14 -prop: (kind | prop | -val | key -> nil)
15 comp: (kind | <[prop | ?val]+> | key -> nil)
16
17 collections
18 ents:ns -> key -> value
19 (rootkind, rootid, __entity_group__,1) -> {__ver sion__: int}
20 (rootkind, rootid, __entity_group_ids__,1) -> {_ _version__: int}
21 (__entity_group_ids__,1) -> {__version__: int}
22 idx:ns:kind -> key = nil
23 idx:ns:kind|prop -> propval|key = [prev val]
24 idx:ns:kind|-prop -> -propval|key = [next val]
25 idx:ns:kind|A|?prop|?prop -> A|propval|propval|key = [prev/next val]|[prev/ne xt val]
26 idx:ns:kind|?prop|?prop -> propval|propval|key = [prev/next val]|[prev/next val]
27
28 // to add persistence later
29 idx: -> kind,A?,[-?prop]*
30
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698