Tim Holloway wrote:I'd venture . . .
We are all guessing. I think Stephan has given a helpful answer:-
. . . you probably already spent more time thinking on the problem than you'll ever save . . .
If you really want to find out, execute each of the instructions 1,000,000× and time them. Repeatedly. in different orders, preceded by lots of the same instructions to make sure all optimisations have time to kick in. Only then do the timing, and you will probably find Stephan is right.
You may find that a database instruction runs more slowly the first time you try it than on subsequent occasions. If so, that probably means the database is indexing the queries and later on those indices allow it to run much faster.