70k items is not that large for an array. Depending on how many properties are attatched, you probably could hold the whole thing in memory at once. It would be worth trying since that will likely speed up your processing by orders of magnitude. Filter out any element with no properties as you load the array.
Don't just select pairs at random and then check to see if they've already been done. That gets very inefficienct after you checked half of the array. Iterate over it instead and only check each pair once. Select the elements with a set of nested loops.
In reply to Re: Benchmarking A DB-Intensive Script
by thundergnat
in thread Benchmarking A DB-Intensive Script
by bernanke01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |