Commit graph

705 commits

Author SHA1 Message Date
792fe5d42c Merge pull request #333 from barakmich/label_queries
query/gremlin, graph/path: Add support for querying with labels
2016-01-02 16:55:34 -08:00
14a5ccce96 Merge pull request #354 from Quentin-M/patch-2
Fix NPE in SQL initialization
2015-12-06 21:28:13 -05:00
55bc592fe9 Merge pull request #356 from jzelinskie/dockerfile
dockerfile: fix go install command
2015-12-06 21:27:50 -05:00
Jimmy Zelinskie
3ebb1ee95f dockerfile: fix go install command
Fixes #355.
2015-12-06 21:22:26 -05:00
Quentin Machu
582c4e1ca4 Fix NPE in SQL initialization
Happens when the database could not be opened. Introduced by e849da9
2015-12-06 19:48:49 -05:00
0a6e5fad1a Merge pull request #347 from jzelinskie/dockerfile
initial Dockerfile
2015-11-26 00:16:59 -05:00
847a54db2e Merge pull request #348 from barakmich/init_idempotent
graph: make quadstore init functions idempotent
2015-11-26 00:15:31 -05:00
Jimmy Zelinskie
44b54e3ba8 README: add container section 2015-11-25 16:05:47 -05:00
Jimmy Zelinskie
521d718a92 initial Dockerfile 2015-11-25 16:03:51 -05:00
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
fab678e456 Add LabelContext to the docs 2015-10-30 17:57:07 -04:00
58a735f329 fix gremlin test, add reversal test 2015-10-30 17:42:16 -04:00
283aca83c2 Expose LabelContext in gremlin 2015-10-30 17:17:57 -04:00
36d0f48d15 graph/path: Add LabelContext to the path query language. 2015-10-30 17:17:57 -04: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