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

DB performance / non-reactive views #19

Open
dcsan opened this issue Nov 1, 2014 · 2 comments
Open

DB performance / non-reactive views #19

dcsan opened this issue Nov 1, 2014 · 2 comments

Comments

@dcsan
Copy link

dcsan commented Nov 1, 2014

the service has slowed to a crawl today, i assume your DB is getting crunched again?

I can't imagine how mongo will scale if those are reactive/observed views

would it be a big help for performance if you were to use non-reactive views? for me it's kind of cute that the tracking is updating in realtime, but not that essential. i mostly go in right now and look at a users detailed flow through the app well after they have left. and for aggregate queries (today's DAU etc) realtime doesn't add much

so this is a thing:
https://github.com/richsilv/meteor-dumb-collections

@Tarang
Copy link
Owner

Tarang commented Nov 2, 2014

Mongo's working quite well with the observable stuff. Its only observed if someone is viewing the page.

Because its analytics, not very many people view it relative to the amount of data being inserted, so that bits quite ok, the number of observers is relatively low.

Its just we have a few huuugee users that sometimes come out of nowhere and choke the db with the amount of data coming in.

For example my db between yesterday and today has hit up 400mb larger from a single user, even though there is '2 day data retention'.

I'll have to work on a way to process the data coming in fast enough, at the moment thats the bottleneck i'm with.

@dcsan
Copy link
Author

dcsan commented Nov 2, 2014

you could charge per event like mixpanel does. your system by default currently sends all events tho...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants