News for hackers. Stuff that matters.
Re:TC Slows Hacker News - Start the Arc can't scale rants. by Excedrin on Tuesday March 11, 2008 @12:44AM (#133899)
I wish my webserver had a repl.
Re:TC Slows Hacker News - Start the Arc can't scale rants. by pg on Tuesday March 11, 2008 @02:01AM (#133970)
Re:TC Slows Hacker News - Start the Arc can't scale rants. by nostrademons on Tuesday March 11, 2008 @09:28AM (#134181)
Django has a shell that automatically loads all model objects. If you've got a decent shared-nothing architecture and point your config to the live DB (bad idea, but for the sake of argument...) that's effectively a REPL for the webserver.

For that matter, you can get the same effect with the MySQL prompt and a shared-nothing PHP architecture.

Re:TC Slows Hacker News - Start the Arc can't scale rants. by anewaccountname on Tuesday March 11, 2008 @12:45PM (#134365)
>For that matter, you can get the same effect with the MySQL prompt and a shared-nothing PHP architecture.

I see how you could, say, drop a user from the users table using this; but how would you fix a login bug like the one under discussion?

Re:TC Slows Hacker News - Start the Arc can't scale rants. by nostrademons on Wednesday March 12, 2008 @01:18PM (#135279)

  EXPLAIN SELECT username FROM users WHERE username = $dc_user
Then look at the output, and either

  CREATE INDEX users_username ON users(username)
Or cache the result, or do something else to fix the performance problem...

If you meant "How do you find out it was in the registration check?", that's what the slow query log and query profilers are for...

Re:TC Slows Hacker News - Start the Arc can't scale rants. by davidw on Tuesday March 11, 2008 @04:11AM (#134059)
FWIW, you can log into Erlang's Yaws.
Re:TC Slows Hacker News - Start the Arc can't scale rants. by musiciangames on Tuesday March 11, 2008 @05:36AM (#134099)
Re:TC Slows Hacker News - Start the Arc can't scale rants. by Xichekolas on Tuesday March 11, 2008 @11:32AM (#134273)
ruby script/console