Time Series data

63 views
Skip to first unread message

Nilesh Rustagi

unread,
Feb 21, 2022, 10:54:11 AM2/21/22
to ArangoDB
Hi,

I am creating a datamodel where I need to store timestamp information on edges. For example, I have a user node and a facebook.com node with the edge of ["ACCESSES"] i.e [user A accesses facebook.com]. I need to store the timestamp information of when userA accessed facebook.com, I am not sure how I can store this information in arangodb.

I have explored neo4j and the only way I can store the timestamp is by storing it in a list but that will cause a long read delays which is critical for my application.

Please suggest how arangodb can solve this usecase

Gary Gendel

unread,
Jun 23, 2022, 4:25:27 PM6/23/22
to ArangoDB
In ArangoDB, edges are just like vertices with special fields _from and _to.  You're free to store additional information if required.  For example, if there is an ACCESSES edge with an id of A, You can set the timestamp on that edge just like a vertex using AQL: UPDATE {_key: A, accessed: <timestamp} IN ACCESSES. You can also do this when creating the edge as well.
Reply all
Reply to author
Forward
0 new messages