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

Add ETL process to compress relevant data #9

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

ChristophWurst
Copy link
Member

Due to many requests being captured, the login_address table grows quickly
on large installations. However, the individual rows are not required for the
training. As long as we know which (ip,uid) has been used first/last, we can
separate training from test data while keeping the database compact.

This will migrate and compress the existing data in batches of 25k rows per hour.

To my defense: I know this way of transforming the data is inefficient. I wish I could use the query builder to do it all in SQL and thuse don't pipe the data through php, but I couldn't get that working.

Due to many requests being captured, the login_address table grows quickly
on large installations. However, the individual rows are not required for the
training. As long as we know which (ip,uid) has been used first/last, we can
separate training from test data while keeping the database compact.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant