kor has asked for the wisdom of the Perl Monks concerning the following question:
Question I"m stumped on here, I can't see any way to represent my database via Class::DBI.
My database holds summaries of unique network transactions, split into monthly, trans per day tables, within yearly schemas. Each row is actually a summary of any identical transactions that happened for that day with a count column
There are a few lookup tables for strings that otherwise might repeat in the transaction record like username -> user id etc. Those lookup tables are also held within the yearly schema for each year 2007.usernames etc. (so yes small amount of repeat data per schema).
I'm writing a cgi to allow queries on these over a date range using about any combination of criteria from the transaction. Ex , date, username, item requested, request method etc
I can't figure out how to represent this via Class::DBI because of the multiple tables holding transaction summaries.
Class::DBI seems to only support something like
etcTransactions ------------ One Huge Table usernames ---------- One Huge Table When it's ------------ 2004.jan_trans_daily 2004.feb_trans_daily 2004.usernames .. 2007.jan_trans_daily 2007.feb_trans_daily 2007.usernames
Can someone enlighten me if there's a clean way to do this? Or is it better to just manually code all the sql.
thank you in advance
K
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::DBI and data split multiple tables
by perrin (Chancellor) on Mar 20, 2007 at 18:53 UTC | |
by kor (Initiate) on Mar 20, 2007 at 20:19 UTC | |
by perrin (Chancellor) on Mar 20, 2007 at 21:35 UTC | |
|
Re: Class::DBI and data split multiple tables
by snoopy (Curate) on Mar 21, 2007 at 02:35 UTC | |
|
Re: Class::DBI and data split multiple tables
by agianni (Hermit) on Mar 20, 2007 at 19:09 UTC | |
by kor (Initiate) on Mar 20, 2007 at 20:03 UTC |