Re:Show HN: JSONlite – A simple, serverless, zero-configurat...
by tyingq on Sunday February 12, 2017 @04:51PM
(#13631147)
Depends on the system, and 400k is short of where things tend to go bad on mine. At 800k files I see it taking 7 seconds.
Even at 400k files, you see longer wait times if you've aliased ls to ls --color (pretty common), or use something like ls -F. Either runs stat() on every file.
Then, somewhere in the 1m+ range, it gets unusable.
Re:Show HN: JSONlite – A simple, serverless, zero-configurat...
by e12e on Sunday February 12, 2017 @06:47PM
(#13631934)
Outputting 1m lines to the console is likely to be slow - and isn't really ls' fault?
Re:Show HN: JSONlite – A simple, serverless, zero-configurat...
by tyingq on Sunday February 12, 2017 @07:20PM
(#13632086)
For troubleshooting or statistical reasons. It's serving as the backing data store. So piping through grep, or to wc, etc. Specifically not sending the output to the screen.
Re:Show HN: JSONlite – A simple, serverless, zero-configurat...
by e12e on Monday February 13, 2017 @12:51PM
(#13637225)
Sure.
As this is a standard Ubuntu install, ls is indeed aliased to "ls --color" - but afaik ls as standard detects pipes, and turns off color (so you don't get a lot of control characters if you do "ls --color | sort > file.txt". Unless you use --color=always if I recall correctly.
Just wanted to differentiate between "select * from documents" and "select count(*) from documents" being slow.
This is in a hyper-v vm on a Surface 4 pro/i5.
The fact that the "uuid" program can quickly generate uuids make me wonder if maybe one approach would be to generate uuids to (a) fifo(s), and then let db thread/processes read uuids from the other end?