in reply to Re: Optimization for Speed w HTML to Database processing
in thread Optimization for Speed w HTML to Database processing

Thanks for the point about the regex. Done

bpoStub is an inhouse module, and it uses the Sybase::DBlib module to do it's processing of database info.

I could break out of it and do my own as it is a very simple module or rewrite it to take advantage of seperate prep and executes(preferred) if I was sure of what I was doing, but I can't find much documentation of the Sybase module. It appears that
$sybdblibvariable->dbcmd("sql here");
is used to prep, and then
is used for execution.

Can anyone tell me if the ? ? ? placeholders will work in a dbcmd/dbexecute pair in Sybase::DBLib as opposed to a DBI prepare/execute pair?

Finally, the only loops that the database insert/update commands are inside of are the loops through the tables and through the compnumbers. It appears from your code here that the table cannot be specified as a ? var, which loses me that option for the tables, and the compnum is used as a part of a where statement when doing updates. Can you use ?'s there as well? Am I understanding this correctly?

Replies are listed 'Best First'.
RE: RE: Re: Optimization for Speed w HTML to Database processing
by Ovid (Cardinal) on Jun 28, 2000 at 23:31 UTC
    Not having used the Sybase::DBLib module, I can't say what it's capabilities are. I found a bit of information about here.

    You can use Sybase with DBD and therefore should be able to use it with DBI. That will allow you to use the syntax I have listed above. I have no idea how its performance will compare with Sybase::DBlib.

    My code was just an example. You should have no problem substituting the table with ? and then passing the table name in the $sth->execute statement.

    <RANT> Naturally, I tried to submit when PM went down. Why does it seem to mostly go down when I submit something? Don't get me wrong: I love this place, but I'll be very happy when it's ready for production (no slight intended towards vroom's fantastic job here)</RANT>