cancel
Showing results for 
Search instead for 
Did you mean: 

PowerBuilder; using FROM dummy, performance problem..?

hansg
Explorer
901

Hi,

Still searching for a problem of our largest customer. Users complain that the application (PowerBuilder) is teriible slow. Mostly it works fine after a restart of the databaseserver.

We did a lot already. Also running Foxhounds for months. That gives not a clue for the moment.

One very weird thing was that sometimes even a 'select * from dummy' takes seconds. (also visible in Foxhound, because the liveness is timing out)

Question: We use a lot of these constructions in PowerBuilder: SELECT fn_xxxx(:ls_parm1) INTO :li_local_pb_var FROM SYS.DUMMY ; (that is because PowerBuilder needss a FROM clause, this method is advised in the manual)

fn_xxx is a database function in SQL Anywhere. That can be a functions that does a lot and can take several seconds, even minutes, to execute.

When dozens of users call that kind of functions, could it be that this construction leads to a performance penalty? Because they all need the same row of table dummy? If so, we should change that into another construction.

Any ideas on that?

Tia Hans

Accepted Solutions (0)

Answers (0)