Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I'd bet a good part of your performance is coming from the OS caching the file in memory. How's the performance look if there's not nearly so much cache handy? (Still good, I expect, but...)
  • How does SQLite handle fork? Can a child inherit a database handle or will it choke (like most RDBM's)?

    Also, have you tried using Perl's threads to run concurrent queries? If you don't have a threaded Perl, there's always the "Inline" modules. :)

    Just curious.

    • Well it locks the entire DB on updates anyway, so I wouldn't recommend it much for multi-user systems.

      I'm curious about all that stuff too, but it's hard to setup those sorts of tests. Well actually not *that* hard - I could just set it up under mod_perl, but I don't have that many hours in the day ;-)
  • The next version of SPOPS, which will come out whenever I wake up -- I have a strict no-bleary-eyed CPAN release policy -- includes support for SQLite. (Oracle too, but let's keep on message.)

    One thing I noticed is that SQLite doesn't seem to like table definitions with an explicit 'NULL' declaration. For instance, the following will fail:

    CREATE TABLE testme (
    id int not null primary key,
    name varchar(20) null
    )

    with a DBD::SQLite::db do failed: near "null": syntax error at ...

    Other tha

    • Watch out for the memory leaks though :-D

      I've got a fix for some of them, but I'm still seeing slight leaks. I'm wondering if that's not in the underlying library though, since leaking 1 scalar per request would see more leakage than I've seen so far.
      • I'm glad I checked the latest CPAN releases before releasing this version of SPOPS -- I see you put the $dbh->last_insert_rowid method in, which means that I don't have to use the random string key generation method :-)