1
0
Fork 0
Commit Graph

943 Commits

Author SHA1 Message Date
Jan Steemann 67082b15fd moved AQL TO_* functions to CXX 2015-06-18 21:30:13 +02:00
Jan Steemann 83b326cfc7 moved PUT /_api/simple/all to C++ 2015-06-18 15:34:45 +02:00
Jan Steemann 1174cfd05c added tests 2015-06-12 18:29:54 +02:00
Jan Steemann db25013b10 added test cases 2015-06-12 17:54:45 +02:00
Jan Steemann 3d5ec4d906 speedup for V8-based AQL functions with huge literal array/object parameters 2015-06-12 15:40:08 +02:00
Jan Steemann ff7a00d6e4 fixed edge index selectivity estimates and added tests 2015-06-11 21:22:01 +02:00
Jan Steemann b5896be10b simplifications 2015-06-10 11:53:31 +02:00
Jan Steemann 627343dde4 added missing file to automated tests 2015-06-02 23:24:08 +02:00
Jan Steemann a41a84cc62 fixed test 2015-06-02 15:11:43 +02:00
Michael Hackstein 25aa2a58c3 Temprorarily disabled a neighbors test using the old return format. Will be reactivated soon 2015-05-30 00:41:28 -07:00
Jan Steemann 59ce0b7ad9 test option `--create-database` 2015-05-29 14:37:47 +02:00
Michael Hackstein 86c7f87dd3 Merge branch 'cppTrav2' into devel 2015-05-19 16:17:27 -07:00
Jan Steemann 20f61bd487 do not try to run non-existing test 2015-05-19 16:09:44 +02:00
Max Neunhoeffer ca17b07dca C++-ify associative-multi and add hashCache, adapt edge index. 2015-05-15 16:37:56 -07:00
Jan Steemann 8480c8b000 speed up resizing of edge index 2015-05-12 21:03:30 +02:00
Jan Steemann f6bc0a05e3 added `limit` parameter for export API 2015-05-12 14:16:27 +02:00
Jan Steemann e230b5a373 privatize vector->_memoryZone, too 2015-05-07 14:13:55 +02:00
Jan Steemann 6b412a1c01 Merge branch 'json-privatisierung' of https://github.com/arangodb/arangodb into json-privatisierung 2015-05-07 13:05:12 +02:00
Jan Steemann f1c3039a08 added routing test 2015-05-07 11:42:17 +02:00
Jan Steemann 63138def67 fix location response headers with special characters 2015-05-05 14:00:06 +02:00
Jan Steemann a007a867ee "privatized" TRI_vector_t internals.
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Max Neunhoeffer 371689fcff Fix a double free in a unit test. 2015-05-02 07:00:35 +02:00
Max Neunhoeffer 97f7743d84 Less copying in Traverser. 2015-05-02 06:28:52 +02:00
Jan Steemann ce7ea1e287 fixed test 2015-04-30 23:38:39 +02:00
Max Neunhoeffer fbfe019913 Rename lookup() to find() 2015-04-25 21:41:45 -07:00
Max Neunhoeffer a553548d87 Add a new priority queue implementation.
This blends a deque and a binary heap to implement a priority queue as
it is useful for the shortest path search.
2015-04-25 21:35:40 -07:00
Jan Steemann 260554cb35 added encoding tests 2015-04-24 00:10:05 +02:00
Jan Steemann baa5e39348 removed lib/Basics/utf8-helper.cpp and merged with lib/Basics/Utf8Helper.cpp 2015-04-21 17:53:35 +02:00
Jan Steemann eaa49b11c6 rename file 2015-04-17 17:48:34 +02:00
Jan Steemann 6e23c5330f added restrictions for export API 2015-04-17 00:24:43 +02:00
Jan Steemann d9add3a493 fixed collect in cluster 2015-04-16 21:10:48 +02:00
Jan Steemann c88109679d added tests for collect methods 2015-04-16 19:20:23 +02:00
Jan Steemann 3d6bc8d28a Merge branch 'import-update' into devel 2015-04-14 11:47:57 +02:00
Jan Steemann 92fcdd3e56 issue #1298: Bulk import if data already exists
This change extends the HTTP REST API for bulk imports as follows:

When documents are imported and the `_key` attribute is specified for them, the import can be
used for inserting and updating/replacing documents. Previously, the import could be used for
inserting new documents only, and re-inserting a document with an existing would have failed
with a *unique key constraint violated* error.

The above behavior is still the default. However, the API now allows controlling the behavior
in case of a unique key constraint error via the optional URL parameter `onDuplicate`.

This parameter can have one of the following values:

- `error`: when a unique key constraint error occurs, do not import or update the document but
  report an error. This is the default.

- `update`: when a unique key constraint error occurs, try to (partially) update the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. Only the attributes present in the import data will be
  updated and other attributes already present will be preserved. The number of updated documents
  will be reported in the `updated` attribute of the HTTP API result.

- `replace`: when a unique key constraint error occurs, try to fully replace the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. The number of replaced documents will be reported in the
  `updated` attribute of the HTTP API result.

- `ignore`: when a unique key constraint error occurs, ignore this error. There will be no
  insert, update or replace for the particular document. Ignored documents will be reported
  separately in the `ignored` attribute of the HTTP API result.

The result of the HTTP import API will now contain the attributes `ignored` and `updated`, which
contain the number of ignored and updated documents respectively. These attributes will contain a
value of zero unless the `onDuplicate` URL parameter is set to either `update` or `replace`
(in this case the `updated` attribute may contain non-zero values) or `ignore` (in this case the
`ignored` attribute may contain a non-zero value).
2015-04-14 11:44:33 +02:00
Max Neunhoeffer f34a009885 Do not execute a time critical test on cluster tests. 2015-04-14 09:06:47 +02:00
Alan Plum ecbc6f581f Merge pull request #1287 from arangodb/vulpine-grace
Foxx improvements (fixes #1284, #1257)
2015-04-08 03:23:55 +02:00
Jan Steemann 0f1244f72d better export API cleanup 2015-03-31 18:44:51 +02:00
Jan Steemann 80a99ab23e refactored cursor API 2015-03-30 14:58:51 +02:00
Willi Goesgens 1a88322a6f Add new env-test to the makefile. 2015-03-26 12:20:33 +01:00
Jan Steemann be713c0a0e bumped version number 2015-03-26 11:38:10 +01:00
Alan Plum 03ccf67269 Implemented Repository lifecycle events. See #1257. 2015-03-25 10:35:18 +01:00
Jan Steemann 1298bd40a8 added tests for out-of-memory situations 2015-03-20 08:54:15 +01:00
Jan Steemann cf845bbe5e added test 2015-03-19 16:27:48 +01:00
Jan Steemann 7dc3fc3d5c safely create collections and databases 2015-03-19 15:56:12 +01:00
Jan Steemann 6e3cf20876 higher timeout 2015-03-19 10:36:07 +01:00
Jan Steemann cf33a76f31 removed two tests 2015-03-18 17:56:01 +01:00
Jan Steemann a062280783 added test for empty datafiles 2015-03-18 17:37:28 +01:00
Michael Hackstein 711712fef3 Another improvement of query test 2015-03-13 13:58:06 +01:00
Michael Hackstein 50257a2d5d Made the api-query-anaylsis test more relyable 2015-03-13 13:43:59 +01:00
Michael Hackstein 1e9fdc379f Added AQL queries test to makefile 2015-03-12 16:05:52 +01:00