You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
Hi there!
I'm new to couchDB and need help to do the below use case in the best possible way:
Use Case: There will be a single database and in that database, there will be multiple multiple documents like:
Company document: Company document will contain the company-related information like companyName, isComanyEnabled, isBlackList, and etc.
User document: User document will contain the user-related information like userName, userContact, isUserEnabled, isBlackList, assignedCompany and etc.
Driver document: User document will contain the driver-related information like driverName, driverContact, isDriverEnabled, isBlackList, and etc.
Vehicle document: Veichal document will contain Vehicle -related information like VehicleMake, VehicleModel, VehicleNumber, isVeichalActive, isBlackList, assignedDriver, assignedCompany and etc.
Vehicle Permission Rule document: This will contain information like which time of which day, which user is allowed to access which Vehicle.
Applications
There will be:
server-side application: This will contain all the information,
Mobile app for User: Using this app, the user can sign in using his credential then the user can book a vehicle and see the list of assigned Vehicles and there will be one QR code for each ride.
Driver App: Using this app, the driver can sign in using his credential then the driver can check which Vehicle is going to drive and which day.
Veichal App: Mobile with this app will be installed on every Vehicle. In this app, the user will scan the QR code and if he gets authenticated then only he will be allowed to take the ride.
AIM
I want this app to work in continuous replication and offline when there will be no network. As there will 1000's of record so want to do the following thing:
Mobile app for User: This app will only sync the record based on the signed userID
Driver App: This app will only sync the record based on the signed DriverID
Veichal App: Here signed veichalID, and its related users, rules will be synced because the QR validation will happen here both online and offline. One the QR code scanned the record will push to the main server when the network will be available.
How can I replicate/sync?
Suggestions and examples are welcome..
The text was updated successfully, but these errors were encountered:
Hi @vdj69 - this (python-cloudant) library can control replication documents on the server (i.e. configuring server mediated replications) via the Replicator class, but it does not have a sync capability. Cloudant has libraries for iOS and Android that are able to sync with Cloudant/CouchDB. PouchDB is also a popular option in the CouchDB ecosystem.
I want this app to work in continuous replication
In general mobile applications don't do "continuous replication" in the way a server does because of the drain on the device. You can see some discussion on this here. The usual pattern is to configure replications to be controlled by events (such as network connecting).
need help to do the below use case in the best possible way
Complete app design is outside the scope of an issue here. If you are an IBM Cloudant or Support for CouchDB customer you can email [email protected] to setup an engagement with our Client Architecture team for more help designing your application. If you are not a customer then I'd recommend the CouchDB slack or users mailing list to have discussions with the wider CouchDB community about best-practices for this type of application.
Hi there!
I'm new to couchDB and need help to do the below use case in the best possible way:
Use Case: There will be a single database and in that database, there will be multiple multiple documents like:
Applications
There will be:
AIM
I want this app to work in continuous replication and offline when there will be no network. As there will 1000's of record so want to do the following thing:
How can I replicate/sync?
Suggestions and examples are welcome..
The text was updated successfully, but these errors were encountered: