Hi,
I have an application which has queries of about 8 inner joins (takes around 0.3 second of execution) . This application is accessed from around 8 different points ( web and wap front end). Since it got so many hits the processes in mysql starts to lock and a lot of people can't access the page.
I am using PHP with mysql_connect() not persistent. We tried persistent but it gives the same result. I'm trying to research for Connection Pooling (like in java) but i haven't found the right resources.
I tried upgrading to mysql 4.20 and change the queries to sub queries but it seems that the execution is twice slower than with Inner JOin (I wonder why). I've also tried to seperate the burden to PHP but it's not such a good idea since it makes my application not scalable.
Please help me with this issue?
Thanks a bunch
Regards,
Namida
I have an application which has queries of about 8 inner joins (takes around 0.3 second of execution) . This application is accessed from around 8 different points ( web and wap front end). Since it got so many hits the processes in mysql starts to lock and a lot of people can't access the page.
I am using PHP with mysql_connect() not persistent. We tried persistent but it gives the same result. I'm trying to research for Connection Pooling (like in java) but i haven't found the right resources.
I tried upgrading to mysql 4.20 and change the queries to sub queries but it seems that the execution is twice slower than with Inner JOin (I wonder why). I've also tried to seperate the burden to PHP but it's not such a good idea since it makes my application not scalable.
Please help me with this issue?
Thanks a bunch
Regards,
Namida