The mod_perl people seem to think simple file based system like DB_File can handle 5,000 to 10,000 rows --larger than I can imagine any of our tables getting.
As a nice plus, DB_File comes with Perl on LINUX where I would use it. Given this information and these two tenets of XP
...I thought I was set. Thinking a little more, I realize I'm going to want to use SQL almost right away and DB_File doesn't do SQL. (right?)
So, back to the drawing board... This level 10 person has a strong negative opinion of DBI. However, the DBI clan looks like a happy and helpful group. This node by trantor touches on avoiding the problems switching between different databases comforts me. (Even though I am not very clear on how s/// and the database independent quote method are different.)
For those not yet part of the clan, DBI translates to "Database interface" and is a generic way to access a large number of file and server based databases from perl. DBD translates roughly to "database driver". For each database, (Oracle,Sybase, Postgres, MySQL, etc) there is a seperate DBD module. DBM refers to Berkley Database files see DB_File.
I'm still hoping "SQL" ne "database server", so I look at the database category on CPAN and search perlmonks. A bunch of people say nice things about DBD::RAM. I come across this helpful node by anonymous (but wise) monk pointing out that DBD::AnyData replaces DBD::RAM
But wait, DBD::AnyData doesn't support joins! and my first query is likely to be something like:
I guess I need a database server after all. The two contenders in my price range (free) seem to be MySQL and Postgres There seem to be more people using MySQL, but a year ago, the OpenACS people had some mean things to say about MySQL. It does look like there have been improvements. However, useful stuff like stored procedures, triggers and nested queries don't look like they are there yet.SELECT users.name, AVG(tests.score) FROM users, tests WHERE users.name=tests.name GROUP BY users.name ORDER BY users.name;
While the feature list for DBD::pg doesn't include access to stored procedures....????... It looks like Postgres is the database for me...
(Barring counter arguments from my wiser peers...)
--mandog
Edit: chipmunk 2001-09-03
update: changed "qoute" to "quote" removed extra (wrong) comma
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by tilly (Archbishop) on Sep 04, 2001 at 00:38 UTC | |
by mandog (Curate) on Sep 04, 2001 at 03:42 UTC | |
by tilly (Archbishop) on Sep 04, 2001 at 05:10 UTC | |
|
(ichimunki) Re: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by ichimunki (Priest) on Sep 04, 2001 at 16:29 UTC | |
|
Re: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by cadfael (Friar) on Sep 04, 2001 at 19:07 UTC | |
|
Re: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by mpeppler (Vicar) on Oct 05, 2001 at 22:53 UTC | |
|
Re: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by shotgunefx (Parson) on Sep 04, 2001 at 18:12 UTC | |
|
Re: exploring XP DBI DBD DBM SQL RDMS MySQL Postgres
by cadfael (Friar) on Sep 04, 2001 at 19:12 UTC |