this post was submitted on 30 Mar 2026
8 points (100.0% liked)

Programming

26291 readers
577 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I need to scan very large JSONL files efficiently and am considering a parallel grep-style approach over line-delimited text.

Would love to hear how you would design it.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] eager_eagle@lemmy.world 2 points 12 hours ago (1 children)
  1. How many grep-like ops per file?
  2. Is it interactive or run by another process?
  3. Do you know which files ahead of time?
  4. Do you have any control over that file creation?
  5. Is the JSONL append only? Is the grep running while the file is modified?
  6. How large is very large? 100s of MB? Few GB? 100s of GB? Whether or not it fits in memory could change the approach.
  7. You're using files, plural, would parallelizing at the file level (e.g. one thread per file) be enough?
  8. How many files and how often is that executed?
[โ€“] dhruv3006@lemmy.world 1 points 6 hours ago

100s of GBs yes.