Questions tagged [arangodb-php]

ArangoDB-PHP - A PHP client for ArangoDB

ArangoDB-PHP - A PHP client for ArangoDB allowing developer to communicate with ArangoDB from PHP applications. The library itself is written in PHP and has no further dependencies but just plain PHP 5.3 (or higher).

The client provides document and collection classes that you can leverage in order to work with documents and collections in an OO fashion.

When exchanging document data with the server, the library internally will use the HTTP REST interface of ArangoDB. The library user does not have to care about this fact as all the details of the REST interface are abstracted by the client library.

25 questions
6
votes
1 answer

How to traverse a graph with ArangoDB and PHP

ArangoDB provides documents and edges as a low level way to produce graphs. Let's say we have set up a graph with some vertices and edges. The graph represents the relationship between the vertices. v2 is a child of v1 v3 is a child of v2 v4 is a…
thesilentman
  • 778
  • 5
  • 18
6
votes
1 answer

How to do user registration and authentication in PHP with ArangoDB?

ArangoDB is a flexible multi-model database server which has very nice features and lots of good documentation. It's a young, very promising open source project with a growing community but not many real world examples to get started. A common…
thesilentman
  • 778
  • 5
  • 18
3
votes
2 answers

AQL query with updatingdocuments from two collections runs as transaction or not?

I have a question about transactions in arangodb, if I run below AQL query, will it be executed as one transaction or will it be separated into two transaction? My backend is php: LET r1 = (FOR u IN Users UPDATE u WITH { status: "inactive" } IN…
2
votes
0 answers

Mass Looped/Bulk Inserts using PHP into ArrangoDB

I wish to write batches of 180-250k documents into an ArrangoDB collection using PHP. It's very easy to add a single document. It's just as easy to throw the insertion of a document into a loop and make 1000's of individual inserts. However surely…
devmo
  • 21
  • 1
2
votes
1 answer

How to fetch all Vertices data from the ArangoDB Graph using REST api

GET /_api/gharial/{graph-name}/vertex/{collection-name}/{vertex-key} The above API fetches a specific vertex. I want to fetch all vertices from the given graph-name using the REST API of ArangoDB. Something like: SELECT * FROM vertices.
Saggy
  • 29
  • 5
2
votes
1 answer

arangodb kill query not working require("org/arangodb/aql/queries").kill("2418")

I am just trying to kill query which is stuck but it throws me a error. 127.0.0.1:8529@testapp> require("org/arangodb/aql/queries").kill("2418"); JavaScript exception in file '/usr/share/arangodb3/js/client/modules/@arangodb/arangosh.js' at …
vinay
  • 21
  • 3
2
votes
1 answer

Traverse up in ArangoDB

I am trying to learn ArangoDB with PHP. I currently have the following graph set up: User -> userEmail -> Email 'User' and 'Email' are vertex collections and 'userEmail' is an edge collection. I am using this model for user authentication where upon…
Lucas Swets
  • 23
  • 1
  • 7
2
votes
1 answer

How to do Full Text indexing and search on the below json Document in ArangoDb?

{ "batters": { "batter":[ { "id": "1001", "type": "Regular" }, { "id": "1002", "type": "Chocolate" }, { "id": "1003", "type": "Blueberry" }, { "id": "1004", "type": "Devil's Food" } ] …
Haseb Ansari
  • 587
  • 1
  • 7
  • 23
2
votes
1 answer

ArangoDB, what's the better way to peform queries?

What's better to retrieve complex data from ArangoDB: A big query with all collection joins and graph traversal or multiple queries for each piece of data?
2
votes
1 answer

How i can receive next or previous element in arango collection?

I have a document in ArangoDB. I need to receive the previous document. How can I receive the previous document in the Arango collection?
jonua
  • 1,915
  • 3
  • 17
  • 27
1
vote
1 answer

How to increase `maxTransactionSize` for Streaming Transactions in arangodb-php

The documentation says to pass as transaction-attribute (the call to /begin): maxTransactionSize: Transaction size limit in bytes. Honored by the RocksDB storage engine only. I manage to do just that, despite the fact that the php-client ignores…
Tom Regner
  • 6,856
  • 4
  • 32
  • 47
1
vote
1 answer

Can arangodb handle 20 billion records?

I just want to know, can Arangodb handle 20 billions of records in a single collection? What is the best way to insert 1 billion records at a time?
1
vote
1 answer

Difficult with registering a document in arangodb-php

Has anyone also had this problem working with arangodb and php? If yes, could you help me understand what it would be. Thanks for listening! Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in…
1
vote
1 answer

Arangov2.8 - Examples of register user functions in AQL

I need to filter some nodes by regex but since Arango v2.8 does not have this functionality I want to try registering user functions can anyone give me an example of how to register a simple function and use it in AQL? I'm trying: var myfunc =…
CommonSenseCode
  • 23,522
  • 33
  • 131
  • 186
1
vote
1 answer

How to get filtered result by using Hash Index in ArangoDB?

My data: { "rootElement": { "names": { "name": [ "Haseb", "Anil", "Ajinkya", { "city": "mumbai", "state": "maharashtra", "job": { "second": "bosch", …
Haseb Ansari
  • 587
  • 1
  • 7
  • 23
1
2