1
0
Fork 0
Commit Graph

5172 Commits

Author SHA1 Message Date
James b1300fb927 same as last 2014-12-02 10:24:01 +00:00
James 8f735ca9c7 more attempts at fixing memleaks 2014-12-02 10:14:16 +00:00
James 3bab43be0a memleaks 2014-12-02 09:36:11 +00:00
James 2d9c4196ac updating comment 2014-12-02 08:05:33 +00:00
Max Neunhoeffer cfb0b21f2d Add Jan's patch for the indexRangeNode recognition.
We change all EnumerateCollectionNodes to IndexRangeNodes if possible
and do not keep the old plans.
2014-12-01 18:38:30 +01:00
Max Neunhoeffer 5c6d3d047d Better error handling and cleanup if instanciation runs into error.
This concerns AQL in the cluster.
2014-12-01 18:26:03 +01:00
Patrick Huber c9de415b1f space, typo. DatabaseMethods.mdpp references v8-vocbase.cpp but this doc block is in v8-collection.cpp... 2014-12-01 15:11:30 +01:00
Frank Celler 9bd960fb21 release version 2.3.1 2014-11-28 20:01:19 +01:00
Max Neunhoeffer 015d45fd4f Fix a bug in AQL COLLECT statement. Sorts out #1127.
This concerned every COLLECT statement, only the first group had access
to the values of the variables before the COLLECT statement.
2014-11-28 17:56:32 +01:00
Jan Steemann 7d5b47478a remove KEEP 2014-11-28 17:56:25 +01:00
Jan Steemann 4ae15a8931 added mergeArrays attribute 2014-11-28 17:55:52 +01:00
Max Neunhoeffer fb97638a11 Fix a comment. 2014-11-28 17:55:46 +01:00
Max Neunhoeffer 0a795499b9 Fix a buffer overflow that did not have any effect. 2014-11-28 17:55:40 +01:00
Max Neunhoeffer 5e3a41dabf Only put non-toplevel vars into the INTO variable in a COLLECT.
This restores the behaviour of 2.2.
2014-11-28 17:55:20 +01:00
Max Neunhoeffer 4d97f7a3ba Choose more sensible block sizes for fetch from dependency. 2014-11-28 17:55:12 +01:00
Max Neunhoeffer cfd71a5bb0 Fix a bug in list access for AqlValues. 2014-11-28 17:55:07 +01:00
Jan Steemann a1f812b28b enable more indexes 2014-11-28 17:53:08 +01:00
Max Neunhoeffer cb57738d1d Two comment changes. 2014-11-28 17:52:41 +01:00
Jan Steemann 5de76aff74 VS 2014-11-28 17:52:13 +01:00
Jan Steemann 544f7d4ab4 fix optimization of subqueries
Conflicts:
	CHANGELOG
2014-11-28 17:51:50 +01:00
Jan Steemann 99530f6478 fixed invalid optimization, added test cases
Conflicts:
	CHANGELOG
2014-11-28 17:50:17 +01:00
Jan Steemann ffca5bdc0b removed unused function 2014-11-28 17:48:55 +01:00
Jan Steemann 0e2770996b include collection name in replication output 2014-11-28 17:48:43 +01:00
Max Neunhoeffer ff3a999348 Fix compilation of new estimation function. 2014-11-28 17:47:58 +01:00
Max Neunhoeffer d889974ad4 First version of fix for LIMIT cost estimation. 2014-11-28 17:47:50 +01:00
Jan Steemann 1f5db121db renamed function, updated documentation
Conflicts:
	CHANGELOG
2014-11-28 17:46:29 +01:00
Jan Steemann b5b803b124 allow lazier querying of hash index 2014-11-28 17:36:10 +01:00
Jan Steemann 06af1d3af2 added several AQL functions 2014-11-28 17:34:29 +01:00
Max Neunhoeffer 6a53d40c24 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-11-28 16:15:47 +01:00
Max Neunhoeffer 7664fc643c Fix a bug in AQL COLLECT statement. Sorts out #1127.
This concerned every COLLECT statement, only the first group had access
to the values of the variables before the COLLECT statement.
2014-11-28 16:14:44 +01:00
Jan Steemann acf070c6ac Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-11-28 15:58:48 +01:00
Jan Steemann 200eacd592 remove KEEP 2014-11-28 15:58:26 +01:00
Max Neunhoeffer 5f217c5781 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-11-28 14:43:54 +01:00
Jan Steemann 7ef8097fe1 added mergeArrays 2014-11-28 14:07:36 +01:00
Jan Steemann bc8579f20b Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-11-28 13:58:59 +01:00
Jan Steemann ac36c0cd7a added mergeArrays attribute 2014-11-28 13:58:49 +01:00
Max Neunhoeffer 877b1d6df9 Fix a comment. 2014-11-28 13:33:15 +01:00
Max Neunhoeffer 0445b547be Fix a buffer overflow that did not have any effect. 2014-11-28 13:31:27 +01:00
Max Neunhoeffer a76e22f03a Only put non-toplevel vars into the INTO variable in a COLLECT.
This restores the behaviour of 2.2.
2014-11-28 13:05:15 +01:00
Max Neunhoeffer 676ec3694d Choose more sensible block sizes for fetch from dependency. 2014-11-28 11:43:09 +01:00
Max Neunhoeffer 4e48475a9f Fix a bug in list access for AqlValues. 2014-11-28 11:21:47 +01:00
James be95719179 fixed bug in logic of hash index use. 2014-11-28 08:24:56 +00:00
James fe356e2187 some partial fixes 2014-11-27 13:24:16 +00:00
James 8a8237a55e correct merge mistakes 2014-11-27 09:55:46 +00:00
James 40a67f47c7 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into aql-feature-index-or
Conflicts:
	arangod/Aql/ExecutionBlock.cpp
	arangod/Aql/OptimizerRules.cpp
2014-11-27 09:25:43 +00:00
Jan Steemann 8a715d7791 fixed `remove-redundant-or` rule
the rule was not producing correct conditions for queries such as

   FOR i IN collection FILTER i._key > 'a' && i._key > null RETURN i
2014-11-26 21:42:22 +01:00
Jan Steemann 292eaad273 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-11-26 19:49:38 +01:00
Jan Steemann 45ebdf7581 enable more indexes 2014-11-26 19:49:28 +01:00
Max Neunhoeffer b2f93a048a Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-11-26 16:47:55 +01:00
Max Neunhoeffer 27cff93a4e Two comment changes. 2014-11-26 16:47:32 +01:00
Jan Steemann 16b7c4a1a8 VS 2014-11-26 15:22:30 +01:00
Jan Steemann 57aefb988d fix optimization of subqueries 2014-11-26 15:01:55 +01:00
Jan Steemann c69fa0b0dc fixed invalid optimization, added test cases 2014-11-25 23:18:24 +01:00
James f96bc93512 proper difference of or conditions with dynamic bounds. 2014-11-25 12:25:10 +00:00
James 12eb461181 correct logic in dynamic bounds evaluation. 2014-11-25 11:55:50 +00:00
James ec21728ad2 fixed logic of optimizer rule use-index-range, if one of the OR conditions is not useable, then throw away plan. 2014-11-25 10:08:50 +00:00
James 80feac02e2 fixed areDisjointRangeInfos. 2014-11-25 09:54:57 +00:00
James 02538a1063 avoid inserting duplicate values in buildRangeInfo when they come from an IN. 2014-11-25 09:05:06 +00:00
Jan Steemann f464fe99cd removed unused function 2014-11-24 13:00:45 +01:00
Jan Steemann 8c2ca1ee48 include collection name in replication output 2014-11-24 12:55:35 +01:00
Max Neunhoeffer 085440d691 Fix compilation of new estimation function. 2014-11-24 09:39:05 +01:00
Max Neunhoeffer 16b69e8fd3 First version of fix for LIMIT cost estimation. 2014-11-23 21:53:25 +01:00
James 9df14a7200 fixed bugs in last 2014-11-23 14:33:26 +00:00
James 703cfa3a16 moving function 2014-11-23 14:16:40 +00:00
James 7e51c27b95 preventing overlap of dynamic ranges 2014-11-23 14:10:22 +00:00
James a0c53a5280 bug fix in containment function. 2014-11-23 13:03:06 +00:00
James ed2e0a555e proper or-combine of overlapping ranges 2014-11-23 12:52:10 +00:00
James bf5d76221e cleaning up 2014-11-22 17:05:51 +00:00
James 3e17882160 cleaning up 2014-11-22 16:47:44 +00:00
James 56aee80aa3 cleaning up and removing redundant code 2014-11-22 16:22:14 +00:00
James 908c14fc6a most tests green 2014-11-22 15:20:26 +00:00
James cc94e2413d same as last 2014-11-22 15:08:04 +00:00
James 2704921daf properly handle empty conditions 2014-11-22 14:58:34 +00:00
James 874792d0a8 fix isIdenticalToExisting 2014-11-22 14:39:40 +00:00
James 16540bbae4 cleaning up and avoid inserting duplicate conditions. 2014-11-22 14:26:48 +00:00
James c1c44ad64f bug fixes 2014-11-22 13:41:05 +00:00
James b9dc309bc2 more robust logic 2014-11-22 12:39:04 +00:00
Thomas Schmidts 403ab66198 Fixed some dead links in the documentation 2014-11-21 09:14:32 +01:00
Thomas Schmidts c6b8e1a569 Fixed some dead links in the documentation 2014-11-21 09:13:50 +01:00
James 02b8bd6b91 don't insert duplicate rangeinfos 2014-11-20 14:42:53 +00:00
Jan Steemann ed919090ea renamed function, updated documentation 2014-11-20 14:46:32 +01:00
James 2f80c76f69 fixed cloning of RangeInfos 2014-11-20 13:24:52 +00:00
Jan Steemann 620274047f Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql-functions
Conflicts:
	CHANGELOG
2014-11-20 14:23:01 +01:00
Jan Steemann 15d27af951 skip writing begin/abort/commit markers for transactions without write operations 2014-11-20 14:20:15 +01:00
Jan Steemann da007f5640 skip writing begin/abort/commit markers for transactions without write operations 2014-11-20 14:19:23 +01:00
James 1f69d82a8a working out bugs 2014-11-20 11:51:22 +00:00
James dd025f4a99 initial changes to IndexRangeBlock for OR and IN conditions. 2014-11-18 13:50:59 +00:00
James 202358b2af cleaning up 2014-11-18 13:26:57 +00:00
Jan Steemann da468b2f58 allow lazier querying of hash index 2014-11-18 14:16:36 +01:00
James d546aa99a8 adding support for OR 2014-11-18 12:30:27 +00:00
James b4d00ebbbf adding distribution of "and" into "or" 2014-11-18 12:25:08 +00:00
James 0613014826 extremely simple IN conditions working. 2014-11-18 10:46:44 +00:00
Jan Steemann f1f13a4284 added several AQL functions 2014-11-18 11:26:42 +01:00
James 2ee1198ba4 all the tests are green 2014-11-18 09:54:10 +00:00
James 7c1fe6e829 compiles 2014-11-18 09:17:06 +00:00
Jan Steemann 548f8137cc issue #1099: do not fail if general-graph.remove is used inside a transaction 2014-11-18 07:02:47 +01:00
Jan Steemann 336d456beb issue #1100: HAS() fails on doc[attribute_name] 2014-11-18 07:01:51 +01:00
Jan Steemann a71bf1819c issue #1099: do not fail if general-graph.remove is used inside a transaction 2014-11-17 15:47:39 +01:00
James 35380b03d1 compilation errors, still doesn't compile. 2014-11-17 13:09:57 +00:00
James 553c638cfe further snapshot 2014-11-17 12:58:33 +00:00
James 0dcffe898c snapshot 2014-11-17 11:11:38 +00:00
Jan Steemann 065a5ecef0 issue #1100: HAS() fails on doc[attribute_name] 2014-11-17 11:38:57 +01:00
James 9f99908315 snapshot 2014-11-17 09:53:44 +00:00
Max Neunhoeffer 0fdc73d5bc Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-11-14 18:58:47 -05:00
Max Neunhoeffer 7161a6b848 Reengineer cost estimation completely.
One test failing in single-server-AQL.
Cluster not yet tested.
2014-11-14 18:58:08 -05:00
Jan Steemann 21ef4579f5 updated documentation 2014-11-14 17:17:51 +01:00
Jan Steemann cf784816a8 hide function 2014-11-14 16:43:34 +01:00
Jan Steemann 5d1e77f3ea more log output 2014-11-14 15:30:43 +01:00
Jan Steemann 71c050d2fa renamed function 2014-11-14 13:06:44 +01:00
Jan Steemann 3696e3c7c1 fixed memleak 2014-11-13 18:04:05 +01:00
Jan Steemann cb1444804e added NODE_TYPE_ATTRIBUTE_ACCESS for CompareAstNodes 2014-11-13 15:55:34 +01:00
Jan Steemann f84f8efaa1 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-13 14:26:28 +01:00
Jan Steemann 32013321c5 fixed compile warning 2014-11-13 14:25:10 +01:00
Jan Steemann 896e8daec5 removed unused variable 2014-11-13 14:24:59 +01:00
Jan Steemann c167024654 fixed compile error 2014-11-13 14:14:27 +01:00
James e09fc778ba Merge branch 'aql-feature-lazy-index' of ssh://github.com/triAGENS/ArangoDB into aql-feature-index-or 2014-11-13 12:19:12 +00:00
James 5fd0bd80be refactoring to avoid to calls to readIndex when fewer than DefaultBatchSize docs are requested. 2014-11-13 11:49:25 +00:00
James fb1fe3e8b1 reset the defaultbatchsize to 1000 2014-11-13 11:21:07 +00:00
James 6822f80129 updating the skipSome for index range block 2014-11-13 11:19:11 +00:00
James 49352cb8c2 removing redundant code, and updated comments. 2014-11-13 11:08:14 +00:00
James aba5567b0e cleaning up 2014-11-13 10:51:04 +00:00
Jan Steemann bb86006926 initialize variable 2014-11-13 10:36:35 +01:00
James a5006b7617 hash indexes working. 2014-11-13 08:37:52 +00:00
James f797afe0d5 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-13 08:04:25 +00:00
Jan Steemann 7cd1eb5474 more warnings 2014-11-12 14:52:54 +01:00
Jan Steemann 8c08a3b24a make `CONCAT` and `CONCAT_SEPARATOR` more useful 2014-11-12 00:07:03 +01:00
Jan Steemann 435016abcd added functions `VALUES` and `ASSEMBLE` 2014-11-11 23:07:45 +01:00
Jan Steemann 3ba00ca653 added `SUBSTITUTE` AQL function 2014-11-11 22:35:15 +01:00
Jan Steemann 9ccf7b85f4 issue #1033: added SPLIT function 2014-11-11 16:35:40 +01:00
Jan Steemann 537ec80dc1 issue #1044: added LTRIM, RTRIM 2014-11-11 14:58:03 +01:00
James f55b252f1b snapshot working on IndexRangeBlock and hash indexes 2014-11-11 12:25:59 +00:00
James 1466813313 cleaning up 2014-11-11 11:32:48 +00:00
James d6e1971fd3 lazy index working for skiplists 2014-11-11 11:29:46 +00:00
James 7d8f2f03ed applying isConstant patch 2014-11-11 08:45:03 +00:00
James 23ea59d405 cleaning up, using ReverseOperator. 2014-11-11 08:43:30 +00:00
James 3e612acdda Merge branch 'aql-feature-lazy-index' of ssh://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-11 08:23:23 +00:00
James 08e8fd193e Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-11 08:21:40 +00:00
Jan Steemann 4a8726ee35 added "split-filters" rule but did not activate it 2014-11-11 00:27:37 +01:00
Jan Steemann 0f3dc692ff fixed crash when accessing _from or _to of non-edges 2014-11-11 00:24:57 +01:00
Jan Steemann ed8e06b88e added PERCENTILE function, draft 2014-11-10 18:10:59 +01:00
Jan Steemann 12d326d62b updated documentation and operators behavior 2014-11-10 18:05:11 +01:00
Jan Steemann d05b47cdb6 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-09 00:10:10 +01:00
Jan Steemann d1f4c6b5fe fixed optimization 2014-11-09 00:09:07 +01:00
Jan Steemann 97b5e906da Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql-feature-lazy-index 2014-11-08 23:26:38 +01:00
Jan Steemann 567860cf65 more aggresively optimizer filters 2014-11-08 23:26:04 +01:00
Jan Steemann 9c5d150866 use Ast::ReverseOperator 2014-11-08 22:31:31 +01:00
Jan Steemann 738636db2d whitespace 2014-11-08 21:26:54 +01:00
Jan Steemann e120bdec8c do not allocate too much space for hash index elements 2014-11-08 21:15:44 +01:00
Jan Steemann 7695223744 use emplace_back 2014-11-08 21:13:41 +01:00
James 14e6370c22 cleaning up. 2014-11-08 17:35:27 +00:00