1
0
Fork 0
Commit Graph

50 Commits

Author SHA1 Message Date
Jan Steemann bc9cf9428a issue #287 2012-11-20 18:27:48 +01:00
Jan Steemann 66cf084232 fixed issue #283: AQL LENGTH() now works on documents, too 2012-11-19 14:01:47 +01:00
Jan Steemann 973ac4fa62 issue #271: simple paths() function optimisations
When an "outbound" query is made with the paths() function, the optimiser will now use an index if a FILTER condition can exploit an index on .source.
Example query:

FOR p IN PATHS(users, relations, "outbound")
  FILTER p.source._id == "some-id"
  RETURN p

The index on p._id was not exploited before, because the optimiser did not know that variable "p" related to collection "users" and that the condition actually would filter on users._id (the variable name in the FILTER statement is "p.source._id).
Now, AQL functions can define callbacks which are called by the optimiser to try some function-specific optimisations.
The optimise callback for PATHS() tries to exploit indexes for filters that filter on the vertex collection (1st parameter to PATHS() call). Indexes can be exploited if the query is an "outbound" query and there are filters on "source", or if the query is an "inbound" query and there are filters on "destination". "anybound" queries will not be optimised
2012-10-26 12:01:46 +02:00
Jan Steemann 875bfd7f79 issue #247 2012-10-17 13:12:12 +02:00
Jan Steemann 6d96d040fa added AQL function TO_LIST 2012-10-10 11:02:56 +02:00
Jan Steemann e326255301 issue #219: continue in case of "document not found" error 2012-10-08 18:12:50 +02:00
a-brandt d077c97f2c ICU updates 2012-09-18 15:42:46 +02:00
a-brandt 1a9961cb4c Added COMPARE_STRING function 2012-09-18 13:13:26 +02:00
Oreste Panaia f93eef34d7 git
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

Conflicts:
	lib/ShapedJson/json-shaper.c
2012-09-10 20:53:41 +08:00
Jan Steemann c0268ce475 try to avoid duplicate read-locking from AQL queries 2012-09-10 14:44:29 +02:00
Oreste Panaia 8847d87580 added limited AQL support for bit indexes 2012-09-10 20:42:14 +08:00
Jan Steemann b8e7d5634d issue #153: edge collection should be a flag for a collection 2012-08-28 10:48:24 +02:00
Jan Steemann 164b63f7a6 handling special case for empty strings in contains() 2012-05-31 16:25:27 +02:00
Heiko Kernbach 030ba0f2e2 ahuacatl-contains 2012-05-31 14:15:46 +02:00
Jan Steemann 2b841bacf7 contains() 2012-05-31 13:15:00 +02:00
Jan Steemann 693338a0fb renamed some functions 2012-05-24 15:27:29 +02:00
Jan Steemann cf8c339e7c added AQL example queries 2012-05-24 14:34:29 +02:00
Jan Steemann e67d7da686 documentation for AQL functions 2012-05-24 11:25:49 +02:00
Jan Steemann 7c0e146246 issue #80: support LENGTH(collection) 2012-05-23 17:50:58 +02:00
Jan Steemann 99fe2199a6 changed implementation of paths function 2012-05-23 16:39:48 +02:00
Jan Steemann 1829075aa0 made direction parameter optional for paths function 2012-05-23 13:42:04 +02:00
Jan Steemann 0bf4a241c7 added test cases 2012-05-23 00:13:33 +02:00
Jan Steemann a4b1027690 added functions unique(), reverse(), first(), last() and has() 2012-05-22 22:43:58 +02:00
Jan Steemann 34bfac9774 some more tests 2012-05-22 22:18:30 +02:00
Jan Steemann f1837d67e5 added paths() function 2012-05-22 18:47:19 +02:00
Jan Steemann 6a75b8affd added collections() function 2012-05-22 13:09:36 +02:00
Jan Steemann 49990c5288 unified javascript runtime error messages in AQL 2012-05-18 15:52:11 +02:00
Jan Steemann c019da58b9 improved function argument validation 2012-05-18 13:33:59 +02:00
Jan Steemann 5dc9bf65e0 added NEAR() and WITHIN() functions 2012-05-18 10:11:27 +02:00
Jan Steemann 0077a4dee2 added tests 2012-05-16 20:24:14 +02:00
Jan Steemann 77a2d45282 fixed ternary operator in AQL, added test cases 2012-05-16 15:15:51 +02:00
Jan Steemann 9260d8b44a AQL now uses skiplists for single and multi-range queries 2012-05-16 12:14:35 +02:00
Jan Steemann 0050f21b2c added multi-value access for skiplists, hash indexes and primary indexes 2012-05-16 10:14:15 +02:00
Jan Steemann d4da126bcb skiplists 2012-05-15 15:27:43 +02:00
Jan Steemann 85f24a72f0 more optimisations 2012-05-15 15:22:56 +02:00
Jan Steemann a35f492b7f added hash index access for for loops 2012-05-15 13:42:15 +02:00
Jan Steemann 693165e47d added some string functions plus test cases 2012-05-14 23:29:54 +02:00
Jan Steemann 29897365e2 fixed some tests 2012-05-14 14:47:23 +02:00
Jan Steemann 7c9660008d fixed accessing non-existing attributes 2012-05-10 17:02:15 +02:00
Jan Steemann aadf9fb3b5 fixed numeric index access 2012-05-10 14:07:12 +02:00
Jan Steemann 9f360652b9 fixed some issues with v8 and unfreed memory 2012-05-04 15:47:01 +02:00
Jan Steemann d7df8ee729 cleaned up code generation 2012-05-04 13:00:02 +02:00
Jan Steemann 80d028a615 some more cases covered 2012-05-02 17:47:54 +02:00
Jan Steemann a72bbaea08 fixed value detection, added tests 2012-05-02 14:34:24 +02:00
Jan Steemann f86dd8d0a1 aaah 2012-04-30 19:14:24 +02:00
Jan Steemann 663afb0fa1 added tests 2012-04-24 14:56:46 +02:00
Jan Steemann 19d7a70d65 added test cases 2012-04-24 14:49:59 +02:00
Jan Steemann 84215f1228 added tests for Ahuacatl 2012-04-24 13:45:08 +02:00
Jan Steemann e083e5e00d added query functions 2012-04-23 18:05:28 +02:00
Jan Steemann 3988664146 added query language 2012-04-23 10:50:26 +02:00