test.php comes up in about 3-4 seconds. So I added the index you indicated. That improved timing a little, now it is about 8-15 seconds. I don't understand the gallery_id field though. It filled it with a number which doesn't make sense to me yet. What does it mean? Can you do the original test again from your side, my WiFi is variable here at work.