4 ms·
The real lesson is to avoid iterating over large result sets in JS by filtering them in your DB.
by bearjaws 8y ago
The real lesson is to avoid iterating over large result sets in JS by filtering them in your DB.
- 25563765 8y agoThis often isn’t possible.
- pier25 8y agoOften? There are cases where large data sets are generated in the browser, but that is not even close to often.
- chrismeller 8y agoDon't forget that JS != browser necessarily... If you're writing a Node app you could very well end up doing this kind of thing a lot (think any kind of ETL process).
- pier25 8y agoTrue, but if you need to handle large data sets in the server Node is definitely the wrong choice.
- mort96 8y agoGames spend a lot of their time iterating over lists of entities, and there's a lot of javascript games.