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

@bartoszwalacik bartoszwalacik commented Jan 13, 2017

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

@bartoszwalacik bartoszwalacik commented Jan 17, 2017

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant