My answer is simple: try both approaches with reasonable data, and see for yourself.
I have seen so many situations where the "slow" solution has been the fastest in real life. A few months ago I had a long discussion here at UT with a programmer who simply refused to try my approach, because he "knew" that it would be too slow. The fact that I used the technique I described in my own webshop with a 900MB table with 9 million records, and with an average response time of less than one second, did not impress him. He needed less response time than 10 seconds, and he insisted that my technique simply could not work. Conclusion: theory and practice is two different things.
>Hi all
>
>What is more efficient:
>
SQL PT dataset (variable no of records but within a range of records)
>INDEX on a field
>
>SCAN
> SEEK(in "MySQLPTCursor")
> Do other stuff
>ENDSCAN
>
>
>SCAN
> SQL PT single record as needed
> Do other stuff
>ENDSCAN
>
>Please advise.