Commit graph

320 commits

Author SHA1 Message Date
0c5f1bc364 Merge pull request #277 from barakmich/upgrade_db
Add migration tool and use protos in Bolt store
2015-10-05 17:22:05 -04:00
f7cdec8294 Merge pull request #289 from barakmich/psql
graph: Postgres backend
2015-10-05 17:20:55 -04:00
Tyler Gibbons
5c41e4fe5d Add periods throughout 2015-10-01 19:52:49 -07:00
Tyler Gibbons
893bd6ca00 Complete comment on line 60 2015-10-01 19:46:52 -07:00
Tyler Gibbons
4f69eb301c Fix copyright dates 2015-10-01 19:41:15 -07:00
Tyler Gibbons
0dd93f87a9 Fix mis-named packages, run tests 2015-10-01 19:14:17 -07:00
Tyler Gibbons
51f5a86232 Refactor for readability
Added more documentation, converted logical operations to (hopefully)
consistent 'route' metaphor, and moved all AND(iterator, iterator)
stanzas out into a single join() function that is more descriptive of
what's actually happening
2015-10-01 19:09:33 -07:00
42aa91b77f Merge pull request #296 from kortschak/bolt-panic
graph/bolt: don't panic on unitialised store
2015-09-18 05:34:59 -04:00
3e2b490063 Fixes memstore transaction semantics 2015-09-03 13:32:09 -04:00
fb7e200551 Respect IgnoreMissing, which SQL does silently. Fixes barakmich/psql #10 2015-09-02 16:26:18 -04:00
fc6f7b3ea7 Merge pull request #9 from Quentin-M/psql-fail-fast-open
Make the SQL connection fail-fast
2015-08-26 16:19:35 -04:00
Quentin Machu
13b11e46a4 Make the SQL connection fail-fast 2015-08-26 02:10:27 -04:00
Quentin Machu
7ddeb101ca Fix NPEs in SQL Next and Contains 2015-08-26 01:19:28 -04:00
kortschak
88262ac344 graph/bolt: don't panic on unitialised store
Fixes #295.
2015-08-17 09:46:18 +09:30
ebaf8b2a98 Can't use distinct, fix double-hashing bug
remove distinctness, make printing the SQL query part of describe

clean up quadstore a bit, add noSizes as an external option
2015-08-12 16:03:25 -04:00
fab8cd64b3 Option to remove size calls
Fix permutations of optimization intersections

Return empty string as per bolt

fix case sensitivity and memstore panic
2015-08-12 16:03:25 -04:00
aedd0401e2 Fix up hash interface and speed up save queries 10x
Fix all optimizer
2015-08-12 16:03:25 -04:00
ab3f59d21f Add hash-based indexes 2015-08-12 16:03:25 -04:00
c98318aa97 Fix tests and update Godep 2015-08-12 16:03:25 -04:00
8830760df2 Split intersection and node iteration into two logical SQL iterators 2015-08-12 16:03:25 -04:00
3e02bb2b71 refactor to SQL builder iterators and standard iterator wrapper 2015-08-12 16:03:25 -04:00
b754810c6e Remove old iterator code, leaving a simple all-iterator for the sql backend 2015-08-12 16:03:25 -04:00
425292811b First reasonably fast integration test 2015-08-12 16:03:25 -04:00
13d4d8b7b4 revert to non-subquery mode 2015-08-12 16:03:25 -04:00
7153a766c1 Add new builder iterators, v2
Subcommits:

link iterator next/contains

implement sql_node_iterator next/buildsql

fix optimizers
2015-08-12 16:03:25 -04:00
621acae945 Optimize by collapsing trees into single SQL queries 2015-08-12 16:03:25 -04:00
185e236f15 attempt to build more interesting SQL queries
Subcommits:

fix old iterator, and flesh out new builder iterator

fix contains for builder iterator

Working replacement iterator
2015-08-12 16:03:25 -04:00
da391c3db7 optional index strategies 2015-08-12 16:03:25 -04:00
3f391a782c first working-ish Postgres backend
Subcommits:

implement iterator and remove ResultTree

add Err() to sql

remove redundant and less helpful indices, change fillfactor, and use COPY FROM
2015-08-12 16:03:25 -04:00
ac1fa668e7 Add check for multiple all iterators
Update test to reflect that the two Alls will be collapsed,
also fix the test of tag optimization to use fixed iterators.
2015-08-12 15:26:19 -04:00
13640290ce Merge pull request #262 from neonstalwart/string-comparison-iterator
add string comparison to value comparison iterator
2015-07-31 17:12:38 -04:00
Igor Mihalik
a8c885a5e8 Fixed multiplier for position of "label" in case of "po" key entry
in "po", the ordering is {"predicate","object","subject","label"} thus the offset of label is 3*hashSize+2
2015-07-28 14:09:23 +02:00
Michael Schurter
db8353a7f1 Missed a test usage of old go-uuid import 2015-06-29 10:08:37 -07:00
Michael Schurter
dfb9939d86 Use new import path for go-uuid 2015-06-26 14:05:10 -07:00
41f5573698 commit after every bucket 2015-06-23 18:39:08 -04:00
8ee61735b7 fix naming in test and fix test 2015-06-23 17:59:19 -04:00
390d012fc4 use proto everywhere on v2 stores 2015-06-23 17:59:19 -04:00
80ddf74cd2 first migration 2015-06-23 17:59:19 -04:00
983a3a52d0 add protobufs and Godep 2015-06-23 17:59:19 -04:00
7aed9db4af Add plumbing for bolt upgrades 2015-06-23 17:59:18 -04:00
ba5b1dbfc3 update the registration interface 2015-06-23 17:59:18 -04:00
9155dc0c56 spec out the interface change 2015-06-23 17:59:18 -04:00
7934252fb5 Add transaction (a list of deltas) as a primitive for applying sets of changes
... and Fix idomaticness
2015-06-23 17:53:24 -04:00
f825fef208 Add Save/SaveReverse and HAS API and split path.go into two files 2015-06-04 15:37:09 -04:00
d639aa3205 Clean up Linkage definition
A linkage is a direction/value pair, and that's all. A set of these can
have helper functions and the like. Cleans up some assumptions of
functionality that isn't useful (yet).
2015-06-02 14:46:19 -04:00
3a7da9f2a0 Merge pull request #249 from barakmich/fix_bolt
Fix bug where first Bolt iteration ignores deletion
2015-06-02 14:44:21 -04:00
e434e76d1e Merge pull request #263 from barakmich/or_iterator_describe
Fix describe in Or iterator
2015-05-29 16:29:07 -04:00
75248c2366 Merge pull request #260 from neonstalwart/memstore-touchup
collapse 2 iterations into 1 in memstore
2015-05-29 15:38:35 -04:00
09f59d1832 Merge pull request #258 from op/metadata-npe
Fix nil pointer panic when meta bucket is missing
2015-05-29 15:35:21 -04:00
a6bd9cb1e2 fix describe in or iterator 2015-05-29 15:28:52 -04:00