I am developing a PHP application that processes IP adresses. I am working with mysql tables containing up to 4 billion rows.
I have a script that currently needs to fetch 65536 adresses from this table and the mysql<->php interface fails to give a response via PHP or even via phpMyAdmin when I try to extract these 65K lines. If used in command line, mysql will give the 65K lines without trouble in about 0.2 sec.
The table containing the IP addresses has 3 indexes ( 1 unique, 2 primary ) which are supposed to help it go faster but I simply cannot get past having mysql give an associative array back to PHP in order to continue my data processing.
Server is a dedicated recent Xeon machine with about 32GB memory (I don't know the exact specs).
Any clues about what could be going on here?
Thanks in advance.