Meteor-Community-Packages / Meteor-Community-Packages/ground-db

Meteor mobile initial load is very slow when using GroundDB

Open
#79 8 comments 0 reactions 0 assignees View on GitHub
help wanted
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.