Meteor-Community-Packages / Meteor-Community-Packages/ground-db
Grounded DB cleared on poor connection.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 569
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently using GroundDB on tablets that are in various areas of connectivity on a 4G network.
What we are seeing is, if the tablet is offline, and a collection has been cached, everything works great.
If we have a tenuous 4G connection however, that makes a subscription, but the subscription is slow or never finishes, we end up with the DB getting cleared entirely. This means in the period between when the subscription starts, and when it receives 'ready', we have nothing in our collections.
The desired behavior would be for the cached data to be available until the new subscription is entirely ready, and especially for it to not lose all of the data in the event it happens to get a passing connection.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the offline cached-collection scenario followed by a slow or incomplete subscription on a 4G connection. Trace where the cached database is cleared before the subscription reports ready. Done means cached data remains available during subscription startup and is preserved when the connection drops or the subscription never finishes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100