-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event persistence #17
Comments
Accomplishments so far:
|
Single DB InstanceI only have a single Cloudant database instance available under the Lite/free plan. Implement Transient Functionality FirstI am pausing completion of the persistence feature until I have more functional work done first, specifically implementing event APIs #2 |
Entity RelationshipsOur entity/resource documents will sometimes contain nested entities/resources that are best represented as their own documents, rather than embedded. This article explains how to represent such a relationship in a Cloudant/CouchDB NoSQL database: https://wiki.apache.org/couchdb/EntityRelationship Example (many:1 relationship)Model: ---
_id: event_id
type: event
organising_club_id: club_id
---
_id: club_id
type: club Client logic: club = {'title': 'Little Club'}
club = db.create_document(club)
event = {'title': 'Big Race', 'organising_club_id': club['_id']}
event = db.create_document(event) Views (1:many relationship)No view is required for a 1:1 or many:1 relationship. Views are required for 1:many relationships. |
Save resources to a backend database.
The text was updated successfully, but these errors were encountered: