1
0
Fork 0
Commit Graph

1368 Commits

Author SHA1 Message Date
Frank Celler a5a25754ed Feature/reduce extraction to projection (#2792)
* reduce extractions to projections

* recycle string buffers in SocketTask

* micro optimizations for mmfiles indexes

* added special lookup function for _key

* moved function into the correct file

* speed up key buffer allocations a bit

* added noexcept specifier

* correctly name variable

* explicitly move bounds

* fix and speedup from/toPersistent functions

* reuse string from ManagedDocumentResult for multiple lookups

* use move-assign

* a bit less work for single server

* speedup AQL function HASH

* single fetch optimization

* performance optimization for the case when no documents need to be returned

* make reduce-extraction-to-projection a RocksDB-only optimizer rule

* cppcheck

* try to fix compile error on MacOS

* bug fix for MacOSX

* missing namespace (in Windows compile)
2017-07-14 08:40:29 +02:00
Frank Celler 40d73d5a8b Revert "[WIP] Feature/reduce extraction to projection (#2735)"
This reverts commit 5bfcff30cd.
2017-07-12 12:52:14 +02:00
Jan 5bfcff30cd [WIP] Feature/reduce extraction to projection (#2735)
* reduce extractions to projections

* recycle string buffers in SocketTask

* micro optimizations for mmfiles indexes

* added special lookup function for _key

* moved function into the correct file

* speed up key buffer allocations a bit

* added noexcept specifier

* correctly name variable

* explicitly move bounds

* fix and speedup from/toPersistent functions

* reuse string from ManagedDocumentResult for multiple lookups

* use move-assign

* a bit less work for single server

* speedup AQL function HASH

* single fetch optimization

* performance optimization for the case when no documents need to be returned

* make reduce-extraction-to-projection a RocksDB-only optimizer rule
2017-07-12 11:22:29 +02:00
Jan a5afdf9437 Bug fix/small issues (#2696)
* remove unused code

* print values of all options

* don't print "warning(s):" if there are none

* remove remainders of old file deletion functionality

* remove unused function
2017-07-01 00:30:45 +02:00
Mark 2ba5ee87c2 Fix issue #2677 (#2678)
Foxx disabling development mode creates non-deterministic service bundle
2017-06-27 16:38:42 +02:00
Jan 9bebd33ba3 fix invalid first group results for sorted AQL COLLECT when LIMIT was used (#2577) 2017-06-16 09:44:14 +02:00
Alan Plum 57487d6f4d Expose internal.time (#2530) 2017-06-09 10:44:29 +02:00
Michael Hackstein db0dcd5579 Reverted API name change on _getConnectingEdges 2017-06-07 11:13:52 +02:00
Alan Plum ab177612a5
Response -> IncomingResponse 2017-05-30 20:09:58 +02:00
Alan Plum cceccf59da Simplified Foxx self healing (#2511)
* Implement new self-heal
* Add error codes for 503, service missing/outdated
* Detect changes to service via rev
* Pretty print incoming response object in log
2017-05-30 18:27:32 +02:00
jsteemann a35f85bcc7 added proper docs for --query.fail-on-warning 2017-05-29 15:46:48 +02:00
Simon Grätzer 2f2d07ab9a Multihreaded import 2017-05-24 18:37:45 +02:00
Alan Plum 30524bbb84
No more need to wrap legacy errors in new Foxx HTTP API 2017-05-17 13:22:11 +02:00
Alan Plum 5d017d733c Improve Foxx cluster resilience (#2479)
* Improve Foxx cluster resilience

Fixes #2083
Fixes #2384
Fixes #2408
Addresses #1892

* Port old Foxx API

* Implement single-file services

* Add console.errorStack/warnStack/infoStack helpers

* Simplify serviceInfo validation

* Extract github/upload logic into Aardvark and old FM API
* Move generator logic into Aardvark
* Move zip/js buffer logic into FM core

* Add Foxxmanager tests

* Send empty response when no README

* Disambiguate script arg format

Historically we allow passing an array of positional arguments or an arbitrary first argument.
This is surprising behaviour, so we should just always treat the value as a first argument.

* Rebuild bundle in development mode

* Nicer HTTP docs formatting

* Create Foxx HTTP docs

* Simplify service upload handling

* Remove inline swagger docs

* Implement public download route

* Consistency

* Rebuild aardvark

* Move bundle route into /_api/foxx/_local

* Rebuild Swagger API docs

* Add changes to CHANGELOG

* More docs
2017-05-16 17:41:29 +02:00
jsteemann 499491bee9 use exclusive locks for some transactions 2017-05-15 22:47:50 +02:00
Michael Hackstein 2e417a1576 db._explain should now be backwards-compatible if we access a 3.1 instance with a 3.2 arangosh 2017-04-26 11:01:05 +02:00
Wilfried Goesgens 05a46e4781 fix db._explain() to work with the new interface of the graph traverser 2017-04-25 20:33:17 +02:00
Michael Hackstein f21fd3c0fe Made dropping of graphs more resilient to errors 2017-04-25 15:56:39 +02:00
jsteemann 9ab0ee817a jslint 2017-04-25 15:17:33 +02:00
Michael Hackstein e5f7303dad Fixed drop in general-graph it now honors distributeShardsLike 2017-04-25 15:08:45 +02:00
baslr 28461a24ca js request simplified if sslProtocol 2017-04-24 23:06:46 +02:00
baslr e01abcf1ed pass also sslProtocol from request to internal.download 2017-04-24 23:06:45 +02:00
jsteemann ca60cd691a remove dependency on fulltext index 2017-04-05 11:22:53 +02:00
jsteemann 6cbe5e7776 fix message 2017-03-23 19:41:28 +01:00
Wilfried Goesgens 85f58b9a21 we may now also do 'milestone'-releases next to devel/alpha/beta/rc 2017-03-22 11:59:25 +01:00
Alan Plum 97e80c9d3b
Whitespace 2017-03-16 15:45:45 +01:00
Alan Plum 50e0eb16d2
Use COLOR_OUTPUT to determine whether to use color 2017-03-15 20:44:03 +01:00
Alan Plum 4920ef8b41
Implement tap/xunit reporters in Foxx 2017-03-15 20:09:31 +01:00
Alan Plum c18aa323dc
Extract util.indentation 2017-03-15 20:09:30 +01:00
Simon Grätzer 27c617fe10 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts:
#	3rdParty/V8/v8
#	arangod/Transaction/Methods.h
#	arangod/Utils/UserTransaction.h
#	arangod/V8Server/v8-collection.cpp
2017-03-01 14:52:35 +01:00
jsteemann f5c8932744 initial version of query execution plan cache, still very rough 2017-02-21 11:58:38 +01:00
Simon Grätzer 64343cd579 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts:
#	scripts/startLocalCluster.sh
2017-01-27 15:58:22 +01:00
Alan Plum c9b926916a
Even cleaner SyntaxError stacktraces
Don't clutter stacktraces for Node compatibility at all. Just add lineNumber/columnNumber/fileName to the object.
These are non-standard but there is precedent for these names in Mozilla.
2017-01-27 05:53:39 +01:00
Alan Plum 88ac5777d6
Clean up SyntaxError generation
Clobber stacktrace instead of wrapping in another exception with wonky message string.
This makes SyntaxError details node-compatible and parseable for generating code frames.
2017-01-27 05:34:22 +01:00
Alan Plum 3370ecbadd
Nicer error page and code frames 2017-01-27 01:57:30 +01:00
Alan Plum c268b2db91
Keep stacktraces out of error messages
They are already reported much more consistently via 'cause' so methods logging them should exploit that instead.
2017-01-27 01:57:29 +01:00
Simon Grätzer 4c370a09fe Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts:
#	arangod/Cluster/ClusterInfo.h
2017-01-24 16:41:34 +01:00
Andreas Streichardt 7b1c9b7833 Instanceinfo and testresult will now be written to the test rootdir 2017-01-24 14:54:10 +01:00
Simon Grätzer d71ebf7c1d Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2017-01-20 14:42:19 +01:00
Andreas Streichardt 9ad10acdc0 add mochagrep 2017-01-19 17:58:43 +01:00
Simon Grätzer 54da6971f1 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2017-01-18 14:07:13 +01:00
jsteemann c9a2c028fa emit sort registers for GatherNode in explain output 2017-01-18 11:58:31 +01:00
Simon Grätzer 20d32d05b2 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts:
#	arangod/VocBase/LogicalCollection.cpp
2017-01-09 13:34:37 +01:00
Wilfried Goesgens 19b8c90bcb fix examples - reset collections cache when working with the graph api
- add dummy cache flush function into the arangod db object
 - call cache flush when creating and deleting graphs
2017-01-04 14:34:26 +01:00
Simon Grätzer f1b6170e96 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-12-19 10:17:18 +01:00
Alan Plum e0fe78b782
Implement HOTP/TOTP 2016-12-19 02:20:53 +01:00
Alan Plum 61301a391b
Expose PKCS5_PBKDF2_HMAC to JS 2016-12-19 02:20:51 +01:00
Alan Plum 9a347f74fa
Cleanup crypto.js 2016-12-19 02:20:29 +01:00
Simon Grätzer 730ea4755e Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts:
#	scripts/startLocalCluster.sh
2016-12-09 14:30:19 +01:00
Alan Plum 0700cfa86a
Implement OAuth 1.0a 2016-12-06 18:30:11 +01:00
Andreas Streichardt 11bd9381d5 Add satellite collections 2016-12-06 16:40:50 +01:00
Simon Grätzer 3142cc1505 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-12-05 01:19:56 +01:00
jsteemann dc5384609c jslint 2016-12-01 14:39:28 +01:00
Simon Grätzer 34714f8743 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-12-01 14:11:14 +01:00
Michael Hackstein 0f119172dd Added convenience function to create vertexCentric indexes. 2016-11-29 12:31:25 +01:00
Simon Grätzer bc4c441f30 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-11-25 17:03:26 +01:00
Michael Hackstein 0786eb735f Fixed passing of unique when using createHashIndex() 2016-11-25 16:08:58 +01:00
Michael Hackstein 7c96010711 Reincluded ensureGeoConstraint. Somehow got lost in my last commit. 2016-11-25 12:58:48 +01:00
Simon Grätzer 9bcf8cd407 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-11-25 12:30:39 +01:00
Michael Hackstein 37b124593f Unified ensureIndex on client and server libs. 2016-11-25 11:11:45 +01:00
Simon Grätzer 0ae6d0d6fd Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-11-17 11:56:29 +01:00
Alan Plum ff415076d9
More convenient `@arangodb/request` 2016-11-16 11:37:59 +01:00
Simon Grätzer 5b08879209 Added pregel arangosh code 2016-11-15 18:14:35 +01:00
jsteemann fcacd76bca display index usage of traversals in AQL explainer output (previously missing) 2016-11-10 12:49:02 +01:00
Jan Steemann f0f90bc914 small fixes for traversal explain output 2016-11-08 16:08:58 +01:00
Alan Plum 0950520eb5
Implement inline middleware 2016-10-26 18:16:18 +02:00
Alan Plum 4770e38fa1
Don't load mocha QUnit interface
The QUnit interface interferes with the BDD and TDD interfaces resulting in weird inconsistencies.
2016-10-26 15:24:56 +02:00
Alan Plum 245819ea9c
Add Foxx HTTP API 2016-10-20 15:09:36 +02:00
Alan Plum c76af3012b
Replace service doc on update 2016-10-20 15:05:23 +02:00
Alan Plum c7940bdb42
More readable names 2016-10-20 15:04:45 +02:00
Michael Hackstein a5e51e5459 Further fixes in gharial for SmartGraph support. 2016-10-13 10:22:07 +01:00
Michael Hackstein 13dc4915f8 Added a new isEnterprise function in js internal module. Started to make gharial aware of SmartGraphs 2016-10-12 13:25:56 +02:00
Michael Hackstein ced62cdaf6 Some improvements in general-graph. Added a new Enterprise error 2016-10-08 01:28:53 +02:00
Michael Hackstein acae6e9486 Modified the internal constructor of general graph to use a single json object instead of several input parameters. 2016-10-07 13:19:06 +02:00
Michael Hackstein 68988a47e6 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2016-10-07 12:59:24 +02:00
Michael Hackstein 807e9cca3c Modernized general-graph module. It now uses ES6 class syntax. 2016-10-07 12:46:45 +02:00
Jan Steemann 7123aca19c issue #2091: decrease connect timeout to 5 seconds on startup 2016-10-07 09:18:51 +02:00
Max Neunhoeffer a5d582e04b Improve pseudo RNG. 2016-09-29 16:39:14 +02:00
Wilfried Goesgens dcbafac851 lintify 2016-09-29 11:38:35 +02:00
Michael Hackstein 939159fc9f Updated the general-graph module to ignore SmartGraphs which are enterprise only. 2016-09-29 08:46:37 +02:00
Max Neunhoeffer 9e2dc6eb36 New depth first search simulators. 2016-09-27 15:56:13 +02:00
Max Neunhoeffer da725af78b Some fixes to helpers for graphs. 2016-09-27 13:25:40 +02:00
Max Neunhoeffer 2913547320 Simulation support for BFS. 2016-09-27 10:59:39 +02:00
Max Neunhoeffer 40083d6019 Add a helpers file for graphs. 2016-09-27 00:12:17 +02:00
jsteemann 0b7d73bf3b add setUpAll, tearDownAll 2016-09-23 12:08:39 +02:00
Michael Hackstein 4f50911c88 Fixed a bug in Traversal Explainer. Also fixed undefined behaviour when directly checking for an attribute omitting == true in early traversal filter. 2016-09-06 18:46:40 +02:00
jsteemann 5c9d015a28 fixed some explainer errors 2016-09-06 13:27:04 +02:00
jsteemann 6ad39e26d6 jslint 2016-09-06 11:12:22 +02:00
Michael Hackstein e22014a272 Merge branch 'MIT' of github.com:arangodb/arangodb into generic-col-types 2016-09-06 09:33:23 +02:00
Frank Celler 04a82b919f added --cluster.system-replication-factor 2016-09-01 15:59:02 +02:00
Wilfried Goesgens 549e7b46d7 mention that the edge is invalid, because of it doesn't obey the edge definitions. 2016-09-01 14:39:38 +02:00
Michael Hackstein a788796280 Fixes #1995. The edgeCollectionRestriction was not properly forwarded in commonNeighbors case for new graph features. 2016-08-19 15:40:15 +02:00
Simran Brucherseifer 4b3a8baa44 FOXX -> Foxx 2016-08-18 13:30:18 +02:00
Andreas Streichardt 3f412debf0 Revert futile attempts to implement client resilience tests 2016-08-17 18:12:40 +02:00
Andreas Streichardt 6aad24ab49 Self managing (instances) tests 2016-08-17 17:25:39 +02:00
Michael Hackstein b66d9ea445 General Graph functions with edgeRestrictions now properly inject WITH <vertexCollections>. 2016-08-08 16:29:02 +02:00
Jan Steemann 23dc618311 fix a glitch in explainer output 2016-07-21 12:08:50 +02:00
Max Neunhoeffer 49dd799ca9 Fix _countCommonProperties. 2016-07-11 15:08:52 +02:00
Max Neunhoeffer 1b1edb0bcc Ignore _rev in _commonNeighbours for general graphs. 2016-07-11 14:47:37 +02:00
Frank Celler 325ede0676 lowered timeout 2016-07-02 15:47:45 +02:00