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

MongoRepository performance problem #489

Closed
bartoszwalacik opened this issue Jan 13, 2017 · 1 comment
Closed

MongoRepository performance problem #489

bartoszwalacik opened this issue Jan 13, 2017 · 1 comment
Labels

Comments

@bartoszwalacik
Copy link
Member

MongoRepository isn't very fast.
These two methods consume significant CPU time:

  • MongoRepository.readFromDBObject()
  • MongoRepository.writeToDBObject()

They convert Documents to CdoSnapshots, but via intermediate JSON String.
Direct conversion (from Documents to JsonElements) should be implemented.

@bartoszwalacik
Copy link
Member Author

new converter is implemented
guava cache added for getLatestSnapshot() function

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

No branches or pull requests

1 participant