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

Optimize CourtListener ingress scripts #50

Open
ProbablyFaiz opened this issue Dec 30, 2021 · 0 comments
Open

Optimize CourtListener ingress scripts #50

ProbablyFaiz opened this issue Dec 30, 2021 · 0 comments
Assignees
Labels
infrastructure Dependency upgrades, refactors, etc.

Comments

@ProbablyFaiz
Copy link
Member

A few things we can do

  • Perform the upsert queries as we reach the requisite batch size while reading JSON files, not all at the end (which leads to significant memory consumption for a lot of opinion data)
  • Download CL tar files to disk rather than holding them in memory so as to consume less memory
  • Parallelize downloads but not tar extraction (faster downloads but don't kill RAM usage)
@ProbablyFaiz ProbablyFaiz self-assigned this Dec 30, 2021
@ProbablyFaiz ProbablyFaiz added the infrastructure Dependency upgrades, refactors, etc. label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Dependency upgrades, refactors, etc.
Projects
None yet
Development

No branches or pull requests

1 participant