Skip to main content
Solved

PLSQL query runs in four seconds but Lobby Element times out

  • February 24, 2020
  • 4 replies
  • 316 views

PRODQ
Superhero (Customer)
Forum|alt.badge.img+17
  • Superhero (Customer)
  • 492 replies

I have a created a Lobby element which is timing out.  I am logged on as user IFSAPP.  The result is the same for two other users.  The PL/SQL query behind the element returns the FIVE records in FOUR seconds

select

contract,

part_no,

ifsapp.inventory_part_cfp.Get_Cf$_Qty_Demand (contract,part_no) qty_demand

from inventory_part ip

where ip.PART_STATUS = 'C'

and ip.CONTRACT = 'PCT'

and ifsapp.inventory_part_cfp.Get_Cf$_Qty_Demand (contract,part_no) >0

 

The Lobby Data source I have created with the same query takes 90 seconds to populate with either “&AO” or “ifsapp” prefix

 

The Lobby element times out and doesn’t return any data after 2 minutes.

The Custom Field referred to is using a select statement:

select ipa.qty_demand from ifsapp.INV_PART_CONFIG_PROJECT_ALT ipa
where ipa.contract = :contract and ipa.part_no = :part_no

Does anyone have any suggestions why the disparity or how to resolve?

Many thanks!

 

Best answer by anmise

Is the custom field necessary? Otherwise you could try to do something like this.

SELECT contract,
 part_no,
 qty_demand
FROM ifsapp.inv_part_config_project_alt
WHERE inventory_part_API.get_part_status(contract, part_no) = 'C'
AND contract = 'PCT'
AND qty_demand > 0

The INV_PART_CONFIG_PROJECT_ALT view has a lot of joins and get functions, so it’ll take some time to run. 

 

View original
Did this topic help you find an answer to your question?

4 replies

PRODQ
Superhero (Customer)
Forum|alt.badge.img+17
  • Author
  • Superhero (Customer)
  • 492 replies
  • February 24, 2020

Lobby data source

 


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 693 replies
  • February 24, 2020

Would it help to prepare an IAL that is always live?

Selection on inventory part view/table would then be less intensive.


  • Superhero (Employee)
  • 1468 replies
  • Answer
  • February 25, 2020

Is the custom field necessary? Otherwise you could try to do something like this.

SELECT contract,
 part_no,
 qty_demand
FROM ifsapp.inv_part_config_project_alt
WHERE inventory_part_API.get_part_status(contract, part_no) = 'C'
AND contract = 'PCT'
AND qty_demand > 0

The INV_PART_CONFIG_PROJECT_ALT view has a lot of joins and get functions, so it’ll take some time to run. 

 


PRODQ
Superhero (Customer)
Forum|alt.badge.img+17
  • Author
  • Superhero (Customer)
  • 492 replies
  • February 25, 2020

Thanks for the alternative views; INV_PART_CONFIG_PROJECT_ALT wins the day!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings