"Greg Sabino Mullane" <greg@turnstep.com> writes:
> I still maintain the original test is brain-dead, however. :) It was
> testing for "insert speed" by basically doing this:
>
> for (1..1000) {
> $dbh->do("INSERT INTO testtable(a,b) VALUES (1,2)");
> }
>
> It's as if the people who wrote it *cough*mysql*cough* never heard
> of prepare/execute and did not read the DBI docs.
Sure but wouldn't that show up as more time spent in the server in the parser
and planner? I thought Tom was complaining that it was spending too much time
in the client not waiting on server responses.
I wonder if Postgres is being bitten by doing lots of extra round trips. Maybe
the MySQL driver detects when there are no placeholders and no parameters and
uses a different protocol method that only requires a single round trip? Or
given your example maybe it even notices no result is needed and doesn't even
wait for a response?
--
greg