We have millions of users of can make millions of transactions between them.
Lets say there is a user_A who pays money to user_B on the daily basis. We have a relationship SEND_MONEY_TO between A and B nodes.
A ---SENDS_MONEY_TO---> B
What will be the better design to accommodate this data in Neo4j.
Option A: We will create a new relationship edge every time a transaction happens.
Option B: We will keep a list of transactions as property of a same relationship edge and append the transaction details to existing list whenever a new transaction happens.
Our queries will look like:
a.) Find number of transaction between user_A and user_B in month of April 2021 where HDFC credit card is used.
b.) Find the total amount of transactions which involves user_A
We are open to any new approach as well.