good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Efficiently Walking Large Data Structures Stored Across Multiple Tablesby iburrell (Chaplain) |
on Mar 01, 2004 at 20:59 UTC ( [id://333054]=note: print w/replies, xml ) | Need Help?? |
First, can you write a SQL statement that gives the information you need from the current schema? Class::DBI can be inefficient when doing traversals across multiple objects because it does lots of individual queries instead of a single query with joins.
If you can write some SQL statements that do the job with the current schema, then you don't need to deal with trees or nested sets or anything like that.
In Section
Seekers of Perl Wisdom
|
|