My project is a HTTP chat using some Jquery, PHP and Mysql.
Jquery infact polls the database every N seconds to check if I have receieved new messages (polling form a mysql table).
Since chat has now >100 connections, mysql gets now 100 requests within N seconds.
What are the best practices, database choice to optimize it ? (it must remain an HTTP chat without using some server sockets)
regards
PS. Maybe MYSQL is not the good choice
Id go with MySql since it is very light weight. PHP and MySql get along well. Since you will have many updates and many reads to the database the InnoDB engine will suite this scenario the best. You may run into problems if you choose MyIsam since it is suited for one job at a time (either updating or reading).