"be consistent" | |
PerlMonks |
Re: Re: Re: How to count rows using DBI & mysql - Performance resultsby Zaxo (Archbishop) |
on Jun 11, 2001 at 23:11 UTC ( [id://87619]=note: print w/replies, xml ) | Need Help?? |
My point was to demonstrate the property of unique indexes which prevent duplication: a safety measure. I never said to use the error for program control. In fact I didn't exhibit any DBI code at all. In practice, with the index in place:
For frequent operations, we can improve performance with the sth->bind_params() method. We search on an index, using a pre-prepared statement handle with placeholders. That will be fast. I didn't mention before that NULL in multiindexes is only available in MyISAM tables. After Compline,
In Section
Meditations
|
|