Meteor-Community-Packages / Meteor-Community-Packages/ground-db
Meteor mobile initial load is very slow when using GroundDB
- Dominant language
- JavaScript
- Stars
- 569
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
When this code is included in my Meteor mobile iPad app, the first time the installed app opens it takes several minutes to get beyond initial loading screen. If I comment out this code, the app loads fast.
```
if(Meteor.isCordova) {
Ground.Collection(Meteor.users);
Ground.Collection(Customers);
Ground.Collection(Projects);
Ground.Collection(Batches);
Ground.Collection(Meters);
Ground.Collection(Messages);
Ground.Collection(Images);
}
```
What might be causing this issue and how can I improve the loading time?
Thanks,
Don
Contributor guide
Research direction
Start by reproducing the first-launch delay in the Cordova iPad app with the listed Ground.Collection calls, then compare it with those calls removed. Investigate the initial loading path for Meteor.users, Customers, Projects, Batches, Meters, Messages, and Images; done means identifying the cause of the delay and documenting a verified way to improve loading time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- database, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100