php - SQL querying for a record and then searching in the previous records for existence -


i have task in have search details of ids in csv file. have used 'in' clause can process 1000 ids @ time. problem after getting records example email associated id have search database if same email has made entry within given time period (one year) , declare id old , not new otherwise new. database large.

i have used 'in' clause again this. have around 1,00,000 ids process. every 1000 ids requires 2 queries 1 getting email , second searching them. entire process taking me more 25 minutes. trying find better ways achieving same result.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -