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

Database performance #7

Closed
josephg opened this issue May 3, 2011 · 2 comments
Closed

Database performance #7

josephg opened this issue May 3, 2011 · 2 comments
Milestone

Comments

@josephg
Copy link
Owner

josephg commented May 3, 2011

The redis database layer is pretty slow at the moment because the code insists on storing / retrieving everything from the server on every operation and query.

There are two easy ways this could be made faster:

  • Introduce a document cache between the database and the model code
  • Make the database layer only commit new document snapshots infrequently.

This change should make the redis database perform about as well as the memory database, which is about a 2x performance boost to the whole system.

@josephg
Copy link
Owner Author

josephg commented Oct 28, 2011

It turns out a caching layer is needed for document metadata anyway. Implementing this now.

@josephg
Copy link
Owner Author

josephg commented Oct 31, 2011

Done: 52be4fd

@josephg josephg closed this as completed Oct 31, 2011
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

1 participant