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

stream export for cube and cards #2471

Closed
wants to merge 1 commit into from

Conversation

dvndrsn
Copy link
Contributor

@dvndrsn dvndrsn commented Oct 15, 2024

Streaming cube and cards directly to file will reduce memory footprint for export scripts. It may improve performance, but I didn't have a large dataset to try to run it against. I didn't fully understand the export decks script, so I didn't try to optimize that one yet.

Future work
For the cubes export, if it is possible to do a snapshot on the first run (export all results, as currently), then do a delta from the modified date on subsequent runs, it would be possible to significantly reduce the time/cost of running this process regularly. That approach would add some complexity to the exports consumer to reconstruct the current cube state by reading applying deltas of cubes changed to the snapshot of initial cubes exported.

If there is another bottleneck (ex. decks export, etc.) can do another pass of optimization.

@dekkerglen
Copy link
Owner

PR is outdated - closing for now

@dekkerglen dekkerglen closed this Jan 15, 2025
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

Successfully merging this pull request may close these issues.

2 participants