in reply to [Dbix-class] search in resultset?

You will really have to profile where the delay is: in making the connection, preparing the query, returning the query-results or objectifying these results. The speed of preparing the query and returning the query-results are of course network and/or server-determined and there is not much DBIx::Class can do here. Rewriting the query, using indexes, ... are all good techniques for speeding-up the record retrieval.

If you have a really huge amount of data to retrieve, paged retrieval can be considered, so you don't get all the data in one bunch, but in separate "pages"

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: [Dbix-class] search in resultset?
by dreel (Sexton) on Aug 15, 2007 at 10:28 UTC
    Thanks for advice!