Skip to content

Comment on Server-Side I/O Performance: Node vs. PHP vs. Java vs. Goparent

Comments

Reminds me of a "real world" web language shootout I once read, which included accessing a database populated with a large dataset.

The author used a query along the lines of:

    SELECT * FROM table ORDER BY RAND() LIMIT 1
Except for the language they wanted to win, which was basically written like:
    SELECT * FROM table WHERE id = RAND()
Which, of course, resulted in it their favorite being the clear winner.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.