Skip to content
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

Don't eat up user's data bandwidth quota #100

Closed
sivakumar-kailasam opened this issue Dec 3, 2016 · 9 comments
Closed

Don't eat up user's data bandwidth quota #100

sivakumar-kailasam opened this issue Dec 3, 2016 · 9 comments
Milestone

Comments

@sivakumar-kailasam
Copy link
Member

Noticed that too much bandwidth was getting utilized by the app when I was inspecting network activity by communicating a lot with cloudant.
By the time I finishing writing down this issue the page had download about 275MB+ content from cloudant.

screen shot 2016-12-04 at 2 45 42 am

@Gaurav0
Copy link
Contributor

Gaurav0 commented Dec 4, 2016

This is what is supposed to make it browsable offline. Should we disable?

@sivakumar-kailasam
Copy link
Member Author

IMHO, I'd sync one version of Ember & data docs and keep overriding it with the version the user visited recently.

@Gaurav0
Copy link
Contributor

Gaurav0 commented Dec 5, 2016

I don't think there is an efficient way to partially replicate a CouchDb database. Is there?

@Gaurav0 Gaurav0 added this to the MVP milestone Dec 5, 2016
@Gaurav0
Copy link
Contributor

Gaurav0 commented Dec 5, 2016

Update: Yes there is! You can create a filter on the server that is nothing more than a JS function and refer to it on the client.

https://pouchdb.com/2015/04/05/filtered-replication.html

@toddjordan
Copy link
Contributor

seems like we'd want our existing behavior when running offline, and do lazy loading when browsing online. I guess one way we could differentiate this is by a url query param...

@MartinMalinda
Copy link
Contributor

I don't think this feature should be enabled by default.
Maybe there could be a checkbox or two whether to download and keep in sync all versions or just latest version of API docs.
And if the syncing is in process, there could be a progress bar and also a confirmation modal on windowClose event.

@acorncom
Copy link
Member

acorncom commented Dec 9, 2016

In the US, with bandwidth relatively cheap, having this download in the background doesn't seem too problematic. But overseas where folks pay for data far more, I can see this being a real unpleasant surprise (especially for folks who are just starting to learn Ember) ...

@fivetanley
Copy link
Contributor

Also, I think if we turn off replication, we can at least load pages we've seen before, and other stuff will stay cached.

@acorncom
Copy link
Member

As mentioned in #132, we're aiming to shift away from CouchDB to simplify the deploy aspect of this app. Will close this issue for now.

@toddjordan toddjordan moved this from TODO to Done in Ember API App MVP Feb 17, 2017
Gaurav0 pushed a commit to Gaurav0/ember-api-docs that referenced this issue Sep 16, 2019
Gaurav0 pushed a commit to Gaurav0/ember-api-docs that referenced this issue Sep 16, 2019
Replace testing guides for v2.18.0 with those from v2.17.0 (ember-learn#100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

6 participants