Lists (both lists fields is equal) example:
name(rt_field): Aaaaaa
attr1(rt_attr_uint): 3
attr2(rt_attr_uint): 0
attr3(rt_attr_multi): (a,b,c,d...)
My goal is to find equal data in both lists.
The way i do it now - I get one list from MySQL db and run it in a cycle with SphinxQL step-by-step. It runs for almost 2 seconds with 500 rows in first list and with 400 000 rows in second list. My query for each row is like:
SELECT id FROM list2 WHERE MATCH('Name') AND attr1=9 AND attr2=0 AND attr3 IN (a,b,x)
What is the best way to find equal data between two lists?
P.S.: Prefer SphinxQL.