title: Online chat with database - Fastest way?
body: <p>Hello I'm going to create a web based chatting program. 
  All chats are private, no groupboxes.</p>
  
  <p>I need to keep a log of all the chats.
  My idea is to push all messages to a mysql database and then check this database every half a second for incoming messages.</p>
  
  <p>Is this the best way for creating the web app? The site should support 2000 users chatting simultaneously. </p>
  
  <p>Are there maybe better options? I've seen people talking about multiple databases, text files, a combination of TCP/IP (IRC) and SQL, etc.</p>