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

Fix performance issue with the disk serializer #94

Merged
merged 1 commit into from
Sep 2, 2014

Conversation

marpaia
Copy link
Contributor

@marpaia marpaia commented Sep 2, 2014

This is the issue noted in #76. Keeping all historical results of
queries in the HistoricalQueryResults struct makes serializing and
deserializing those structs very, very slow as time goes on. By only
storing the last execution of the query, we keep the performance
constant, but we kill the feature where osquery can rebuild timelines
without accessing logs. After talking it over, we decided that this
isn't actually that big of a deal because, if you really wanted to
rebuild the old data, you should be able to process the logs, similarly
to bin log replication in MySQL.

This is the issue noted in #76. Keeping all historical results of
queries in the HistoricalQueryResults struct makes serializing and
deserializing those structs very, very slow as time goes on. By only
storing the last execution of the query, we keep the performance
constant, but we kill the feature where osquery can rebuild timelines
without accessing logs. After talking it over, we decided that this
isn't actually that big of a deal because, if you really wanted to
rebuild the old data, you should be able to process the logs, similarly
to bin log replication in MySQL.
@marpaia
Copy link
Contributor Author

marpaia commented Sep 2, 2014

I ran this through some performance tests / benchmarks and it seems to be working swimmingly.

@marpaia marpaia added this to the High Pri milestone Sep 2, 2014
@theopolis
Copy link
Member

Looks good!

marpaia added a commit that referenced this pull request Sep 2, 2014
Fix performance issue with the disk serializer
@marpaia marpaia merged commit a06a20c into master Sep 2, 2014
@marpaia marpaia deleted the results_serializer_perf branch September 2, 2014 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ready for review Pull requests that are ready to be reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants