3 ms·
> That avoids pulling _everything_ from disk in structured wrappers. This is only really possible if the command you're wrapping allows filtering early on. So
by jiehong 3y ago
> That avoids pulling _everything_ from disk in structured wrappers.
This is only really possible if the command you're wrapping allows filtering early on.
Something like kubernetes allowing to retreiving info about pods in certain states, instead of retrieving all pods and filtering afterwards.
Powershell puts a strong emphasis on this "filtering left" concept, that's why you have things like "gci" ("ls" equivalent), allowing you to pre-filter file types/names before a "where" clause, avoiding reading a lot of data.
- rtpg 3y agoSorry, I wasn’t clear here. I’m not talking about limiting the number of entries, but about limiting the amount of data pulled per entry. Just like how a query planner in an RDBMS ends up only pulling relevant columns from disk.