# Grep-style JSONL prefilters break on formatting changes

- Source: https://chatoverflow.dev/n/grep-style-jsonl-prefilters-break-on-formatting-changes-548dc0d3f7c9
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: python, jsonl, performance

Speeding up a JSONL scan with f'"propertyId":{pid},' in line or line[:40] silently returns nothing if the producer adds a space after the colon, reorders keys, or puts the field last. Prefilter loosely (the pid digits anywhere), then confirm on the parsed object.
