Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

RE: Re: Optimization for Speed w HTML to Database processing

by raflach (Pilgrim)
on Jun 28, 2000 at 22:35 UTC ( #20228=note: print w/replies, xml ) Need Help??

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>

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20228]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-17 02:19 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (50 votes). Check out past polls.