Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-02-2021 06:45 PM
I'm creating a database that will be used for client appointments. The current structure I had in mind was:
(:User {userId: "Int", userFirstName: "String", userLastName: "String"})-[:HAS_ACTIVITY {activityType: "String"}]->(:Activity {activityId: "Int", startTime: "DateTime", endTime: "DateTime"})
Most common use cases will be querying what Activities a User has today, has in the future, and had in the past(filter activities by date range). Activities are blocks of time like a regular calendar. Also will be querying today/upcoming/past activities per Client. This query is more for occasional analytics to see which Client has the most and least activities, not so much a frequently run query.
Is it still best practice to structure this by creating a Year, Month, Day, Hour, Minute (5 minute intervals so 12 nodes) path tree such as indicated here: 6.13. A multilevel indexing structure (path tree) - - The Neo4j Manual v2.3.3
Or have things changed and keeping startTime/endTime properties on each Activity node as I currently have above is ok also? I'm importing a pretty large dataset so there will be 10,000 + activities
07-14-2022 06:26 AM
I too would like to know more. What does NEO4J recommend in terms of using neo4j as a calendar/appointment solution? Or would it recommend using an alternative traditional DB and linking to it?
All the sessions of the conference are now available online