e849da9402
graph: make quadstore init functions idempotent
2015-11-25 15:06:47 -05:00
9658689995
Merge pull request #346 from barakmich/readme
...
Update README to mention Postgres and remove unused trello board
2015-11-25 13:40:46 -05:00
4cdeb6beb9
Update README to mention Postgres and remove unused trello board
2015-11-25 13:40:18 -05:00
4fd500d07e
Merge pull request #345 from jzelinskie/triple
...
add Triple function
2015-11-25 11:22:43 -05:00
Jimmy Zelinskie
7d18978492
add Triple function
...
This is a shortcut for those that are not using the label field. It can
become very verbose always calling Quad with an empty string as the last
parameter.
2015-11-25 11:21:42 -05:00
f143602b8a
Merge pull request #342 from Quentin-M/slow_deleles
...
Fix SLOW DELETEs
2015-11-19 00:47:25 +01:00
Quentin Machu
a2622536e9
Fix SLOW DELETEs
...
subject, predicate, object and labels are not indexed, thus, using a where clause on these fields for the DELETE statement does a full-table scan. Using *_hash columns instead will use the indexes.
2015-11-18 18:42:20 -05:00
2f5ce909a2
Merge pull request #338 from Quentin-M/sql_skull_lock
...
Fix a deadlock behavior with DELETE transactions
2015-11-18 02:40:53 +01:00
Quentin Machu
d874441431
Fix a deadlock behavior with DELETE transactions
...
It appears that preparing an INSERT statement on PostgreSQL actually makes it expecting to receive INSERTs and thus, it create some kind of locks for it. If instead, you only send him DELETE statements, it will indefinitely wait for an INSERT and will hung.
2015-11-17 20:32:21 -05:00
cfbc0b3649
Merge pull request #337 from Quentin-M/tx_ordering
...
Ensure that quads in a transaction are applied in the desired order.
2015-11-17 19:34:43 +01:00
Quentin Machu
383cb339ac
Ensure that quads in a transaction are applied in the desired order.
2015-11-17 12:10:59 -05:00
6027e4c48b
Merge pull request #336 from Quentin-M/master
...
Use a Size() estimate for SQL Quadstore when noSizes is enabled.
2015-11-16 22:11:01 +01:00
Quentin Machu
174a13cf23
Add a Size() estimator for PostgresSQL
...
Counting on PostgreSQL could be really slow because of its MVCC model. See https://wiki.postgresql.org/wiki/Count_estimate
2015-11-16 16:01:06 -05:00
cdf0154d1a
Merge pull request #316 from barakmich/save_sql
...
sql: Combine AND(Fixed, SQL) and fix Save() roundtrips
2015-11-12 15:31:26 -05:00
277fc748e3
Combine AND(Fixed, SQL) into a single IN clause, reducing roundtrips. Add a test and benchmark.
2015-11-12 15:14:48 -05:00
99283d5412
Merge pull request #335 from barakmich/multi_link_optimization
...
graph/sql: Use an IN clause when optimizing a fixed iterator
2015-11-12 15:05:30 -05:00
831b14c23e
graph/sql: Use an IN clause when optimizing a fixed iterator
2015-11-12 14:56:18 -05:00
7a5e206539
Merge pull request #331 from barakmich/fix_or
...
query/gremlin: fix building Or iterator, add test
2015-10-29 17:29:13 -04:00
539bd9b272
fix building Or iterator, add test
2015-10-29 17:26:21 -04:00
0b91414c4b
Merge pull request #330 from barakmich/refactor_gremlin
...
query/gremlin: Refactor in terms of graph/path
2015-10-28 23:22:09 -04:00
3d286f5245
document path context, pipe it through Reversal() as well, and update the godoc
2015-10-28 23:12:37 -04:00
f74051a520
Rewrite Gremlin's buildIterator in terms of paths
2015-10-28 21:26:29 -04:00
97247ae40f
add InPredicates/OutPredicates
2015-10-28 19:42:59 -04:00
b91b7ab824
bring the path test in line with the gremlin test, add Back()
2015-10-28 19:15:57 -04:00
bcbdb1f82a
route context through graph.Path
2015-10-28 18:35:10 -04:00
c5cea1f78b
Merge pull request #319 from Quentin-M/patch-1
...
Fix NPE in SQL Quadstore
2015-10-24 18:49:24 -04:00
Quentin Machu
3f5a4a7827
Fix NPE in SQL Quadstore
...
When `tx.Exec` fails and an error is returned, result is nil. Thus, `result.RowsAffected()` panics.
* Add a missing return statement in the error test.
* Add a second missing return statement just below to return the proper error message if we can't execute `RowsAffected` instead of saying that the triple doesn't exist.
2015-10-18 14:40:36 -04:00
6c5ac2abaf
Merge pull request #315 from Quentin-M/improve-tx
...
Improve Transaction: deduplicate quads, allow adding/removing a quad in the same tx
2015-10-06 16:20:06 -04:00
Quentin Machu
91fc9ee3de
Improve Transaction: deduplicate quads, allow adding/removing a quad in the same tx
2015-10-06 15:56:02 -04:00
Quentin Machu
45d96e14ec
Improve Transaction: deduplicate quads, allow adding/removing a quad in the same tx
2015-10-06 15:21:33 -04:00
b74f8f1340
Merge pull request #313 from barakmich/fixes
...
Fix corners after causing a couple merges
2015-10-05 17:58:18 -04:00
4ffda9ad3b
Fix corners after dropping a couple merges
2015-10-05 17:45:42 -04:00
0274e9f73c
Merge pull request #292 from ds--/master
...
Adds exporting capabilities
2015-10-05 17:26:10 -04:00
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
0c7160aaa0
Merge pull request #305 from sayden/readme-typo-fix
...
Typo fix when building cayley from scratch
2015-10-05 17:17:12 -04:00
d831fdd4c2
Merge pull request #306 from sayden/correction-in-overview-docs
...
Order of parameters when using :a and :d are switched
2015-10-05 17:15:17 -04:00
363120a3f7
Merge pull request #312 from Kavec/path-readability
...
Refactor for readability
2015-10-05 17:14:49 -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
1a86cf0b13
Add myself to contributors
2015-10-01 19:32:25 -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
Mario Castro
3ad4d56026
Order of parameters when using :a and :d are switched
2015-09-04 23:18:26 +02:00
Mario Castro
3cdd6c85f6
Typo fix in readme "script" to build cayley
2015-09-04 22:57:32 +02:00
f3e37867e0
Merge pull request #303 from barakmich/memstore_semantics
...
Fixes memstore transaction semantics
2015-09-03 13:35:09 -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