Commit graph

572 commits

Author SHA1 Message Date
03798bc4fa fix mongo hasher 2014-08-13 13:29:08 -04:00
104e7d110d fix leveldb (and speed up hasa) 2014-08-13 13:08:50 -04:00
kortschak
4a92ae9758 Merge branch 'log_database' into b
Conflicts:
	graph/memstore/iterator.go
	graph/memstore/triplestore.go
2014-08-13 17:15:11 +09:30
kortschak
d98ca99974 Merge branch 'master' into b
$ benchcmp gollrb.bench b-gen.bench
benchmark                                   old ns/op       new ns/op	delta
BenchmarkNamePredicate                      1369329         1444990	+5.53%
BenchmarkLargeSetsNoIntersection            72329029        64975716	-10.17%
BenchmarkVeryLargeSetsSmallIntersection     890824761       408784476	-54.11%
BenchmarkHelplessContainsChecker            35314797618     30673240485	-13.14%
BenchmarkNetAndSpeed                        19694146        19486797	-1.05%
BenchmarkKeanuAndNet                        15340756        15317415	-0.15%
BenchmarkKeanuAndSpeed                      17902709        18042030	+0.78%
BenchmarkKeanuOther                         53452058        50984817	-4.62%
BenchmarkKeanuBullockOther                  90827780        86536510	-4.72%

benchmark                                   old allocs     new allocs	delta
BenchmarkNamePredicate                      1339           1339		+0.00%
BenchmarkLargeSetsNoIntersection            22603          22674	+0.31%
BenchmarkVeryLargeSetsSmallIntersection     65787          65860	+0.11%
BenchmarkHelplessContainsChecker            1713541        1713669	+0.01%
BenchmarkNetAndSpeed                        17135          17146	+0.06%
BenchmarkKeanuAndNet                        15802          15802	+0.00%
BenchmarkKeanuAndSpeed                      16397          16396	-0.01%
BenchmarkKeanuOther                         30148          30149	+0.00%
BenchmarkKeanuBullockOther                  35542          35544	+0.01%

benchmark                                   old bytes     new bytes	delta
BenchmarkNamePredicate                      96226         95842		-0.40%
BenchmarkLargeSetsNoIntersection            1165914       119725	+2.69%
BenchmarkVeryLargeSetsSmallIntersection     2760072       2777798	+0.64%
BenchmarkHelplessContainsChecker            84388448      84351168	-0.04%
BenchmarkNetAndSpeed                        1414837       1425752	+0.77%
BenchmarkKeanuAndNet                        1247249       1247453	+0.02%
BenchmarkKeanuAndSpeed                      1275522       1275243	-0.02%
BenchmarkKeanuOther                         2021107       2021497	+0.02%
BenchmarkKeanuBullockOther                  2682243       2683250	+0.04%
2014-08-13 16:01:32 +09:30
1b22203e7a Merge pull request #109 from kortschak/empty
Allow memstore instances to be started empty
2014-08-12 19:42:46 -04:00
ee11a26bc2 Merge pull request #116 from barakmich/issue114
Fix Issue 114 -- And subiterators may move forward on Contains, even if the And ultimately doesn't
2014-08-12 19:32:30 -04:00
50efe31fdd fix the test, remove -short from .travis.yml 2014-08-12 19:26:02 -04:00
b6d966e9b5 fix and iterator, add some logging, and reenable 2014-08-12 16:38:10 -04:00
5d3a4a4a8f fix all iterator 2014-08-11 21:25:32 -04:00
kortschak
99d44e3228 Add test and make it pass 2014-08-12 10:20:26 +09:30
1099969591 save horizon with transactions 2014-08-11 17:14:51 -04:00
kortschak
2540ea8f87 Use cznic/b for index store
$ benchcmp gollrb.bench b-gen.bench
benchmark                                   old ns/op       new ns/op	delta
BenchmarkNamePredicate                      1731218         1693373		-2.19%
BenchmarkLargeSetsNoIntersection            81290360        70205277	-13.64%
BenchmarkVeryLargeSetsSmallIntersection     768135620       442906243	-42.34%
BenchmarkHelplessContainsChecker            39477086024     35260603748	-10.68%
BenchmarkNetAndSpeed                        22510637        21587975	-4.10%
BenchmarkKeanuAndNet                        18018886        17795328	-1.24%
BenchmarkKeanuAndSpeed                      20336586        20560228	+1.10%
BenchmarkKeanuOther                         85495040        80718152	-5.59%
BenchmarkKeanuBullockOther                  95457792        83868434	-12.14%

Code gen from $GOPATH/src/github.com/cznic/b:

  make generic \
| sed -e 's/KEY/int64/g' -e 's/VALUE/struct{}/g' \
> $GOPATH/src/github.com/google/cayley/graph/memstore/b/keys.go

key_test.go manually edited.
2014-08-11 20:45:55 +09:30
3ceb19ca6c add travis deps 2014-08-11 05:32:53 -04:00
82e4d122fc bolt db works 2014-08-11 05:31:34 -04:00
d261e5d870 wip 2014-08-11 02:54:14 -04:00
664b37b9a6 Merge branch 'master' into log_database 2014-08-10 21:50:36 -04:00
aad21b0585 Fix aborted materialization 2014-08-10 21:49:57 -04:00
9ce35aeb45 add removal test 2014-08-10 21:34:22 -04:00
48711af1d9 Mongo log works (and bug fixed) 2014-08-10 21:05:39 -04:00
3770190db5 test clean 2014-08-10 20:10:00 -04:00
6d22037602 add iterator check for mongo 2014-08-10 19:41:22 -04:00
ff148f58f8 first swing at mongo indexing (iterator todo) 2014-08-10 19:35:26 -04:00
8821c1968d add config options and graph.Handle 2014-08-10 18:17:38 -04:00
a1e5a53dd5 Merge with new Next() interface 2014-08-10 17:59:09 -04:00
kortschak
0c79c11606 Allow memstore instances to be started empty
This allows easier debugging of web UI problem.
2014-08-09 18:13:44 +09:30
11c3cd17c6 Fix cayley load command 2014-08-09 01:23:23 -04:00
614184bf87 Merge pull request #108 from kortschak/issue106
Use cquads in the web UI data loader
2014-08-09 01:22:16 -04:00
kortschak
9263b05d75 Use cquads in the web UI data loader
Fixes issue #106.
2014-08-09 10:09:43 +09:30
166ebb1a3a Merge pull request #105 from kortschak/persistence
Handle persistence and quad format in cayley
2014-08-08 17:00:28 -04:00
607d0040e2 Merge pull request #104 from kortschak/repl
Use github.com/peterh/liner for REPL lines
2014-08-08 16:44:59 -04:00
kortschak
86bf7e9e6a Remove now-irrelevant failing test 2014-08-08 22:21:42 +09:30
kortschak
4844ef3e58 Add support for remote data sources
Now you can, for example:

cayley http --dbpath="https://github.com/google/cayley/blob/master/30kmoviedata.nq.gz?raw=true"
2014-08-08 22:19:53 +09:30
kortschak
844927ff1f Make decompressor conditional on reader interface 2014-08-08 21:27:17 +09:30
kortschak
088e73a163 Merge {init,open,load}.go into db.go
The functions are too small to justify a single file each. The repl file
is left out as semantically unrelated.
2014-08-08 10:32:58 +09:30
kortschak
979a0c4aee Allow optional strict N-Quad parsing
This puts more of the logic in cayley, but other approaches require that
db knows about quad formats.
2014-08-08 10:28:18 +09:30
kortschak
4c3f5109eb Separate db.Open and db.Load
Updates #82.
2014-08-08 09:52:35 +09:30
kortschak
2d4c07b56d Make db name-literal agnostic
Move the persistence characteristic of the store into the graph registry
and provide an API hook to get that information.

Add error return for init on a non-persistent store.

Updates #35.
2014-08-08 08:36:49 +09:30
kortschak
7265e1d7a1 Use github.com/peterh/liner for REPL lines
This gives us history and line conveniences.
2014-08-07 15:02:30 +09:30
7cd740aa7b Merge pull request #93 from kortschak/nexter
Simplify the Nexter interface
2014-08-06 23:48:46 -04:00
kortschak
191244c40e Sync iteration calls to Nexter interface changes 2014-08-07 07:07:45 +09:30
kortschak
62785d25c2 Merge branch 'master' into nexter
Conflicts:
	graph/leveldb/all_iterator.go
	graph/leveldb/iterator.go
	graph/memstore/triplestore.go
	query/gremlin/finals.go
2014-08-07 06:57:45 +09:30
b52f9726ea update readme 2014-08-06 17:18:12 -04:00
b74cb142f0 Key/Keyer 2014-08-06 16:59:46 -04:00
6d4738cf0c convert to using real quads 2014-08-06 16:24:31 -04:00
c64acabee0 merge to master 2014-08-06 16:21:57 -04:00
408103b406 Merge branch 'materializer_iterator' 2014-08-06 15:59:24 -04:00
2b43185117 rename Hashable/Hasher 2014-08-06 15:58:37 -04:00
272829f3e9 Merge pull request #103 from barakmich/materializer_iterator
Fix Materializer iterator
2014-08-06 15:52:36 -04:00
4d9dd42dd8 comment 2014-08-06 15:51:56 -04:00
840c341274 Fix ID Lookup 2014-08-06 15:39:55 -04:00