in reply to search like
...believe it or not there is a hint in there somewhere ;)
Update: Actually come to think of it, all you need is GROUP BY, + COUNT(*) - check out your database documentation (from whichever planet it comes ;))
More update: I am also influenced by the doubt as to whether DBI is artificially intelligent enough to insert the required clauses -- it might still query the database for all the rows that meet the where clause which might still be a query from hell at the database end, even though it might be constrained only to return 2 to the caller! Make sure you check the SQL generated by any Perl libraries you do try out.
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search like
by andye (Curate) on Feb 28, 2007 at 14:27 UTC | |
by Moron (Curate) on Feb 28, 2007 at 14:51 UTC | |
|
Re^2: search like
by barrycarlyon (Beadle) on Feb 28, 2007 at 13:36 UTC | |
by rhesa (Vicar) on Feb 28, 2007 at 13:52 UTC | |
by barrycarlyon (Beadle) on Feb 28, 2007 at 14:00 UTC |