On this page

Graph in Stream

BangDB streams can also use Graph for the events which are time-series data. To use Graph in the stream, we may simply edit the schema and add set of relations as needed.
Let’s say we have a schema where we receive purchase events for e-commerce and we would like to link user and the product he/she purchases, then we would simply add following;


Here is the short schema definition for example;

"name":"order","type":1, "swsz":86400,

that’s it, where the “user” and “product” are attributes in the Order stream.
Once defined, db would simply keep creating the relations (and creating nodes as required).

To query, we can use Cypher as described above using usual methods.

Now, let’s look at some of the topics in detail and in advance sense, also we will introduce SYMM, ASYMM, AGGREGATION in detail, Filtering in detail, SHORT_PATH and ALL_PATH in more complex situations and SIMILARITY

Was this article helpful to you? Yes No