Hi,
I am back of the subject of my large tables with IP addresses in. On your advice I sorted the data before loading and that made a huge difference. I can do sub-second queries against billions of rows.
My question is: The above applies for the IP in column 1 - ie; I sorted the table on column 1. If I want to do a similar search but on the IP is column 2 then I have no option but to sort the table again on column 2 - is that correct?
This means I will have two ‘identical’ tables, one sorted on IP_1 and a second sorted on IP_2. I can then search on both tables and then do a JOIN. I want the two queries to complete and then do UNION ALL on the two results.
I am ok with doing this, but just wanted to check it was necessary for searching on either column.
Thanks

