Loading items from service into a single select

时间:2019-04-08 12:54:49

标签: user-interface ibm-bpm

I am using IBM BPM V8.5.7. I want to use a single select to select an item which are retrieved via a service. The problem is that the service returns 10k+ items and I currently use a search function. What I want to achieve basically is to search in the single select dropdown and whilst doing that it must fire the service and return the search results.

I have managed to get the search function working properly but searching through so many items slows down BPM. I've tried using a piece of code but that just cleared the items once the service was called

1 个答案:

答案 0 :(得分:0)

您的DB-Select可能看起来像这样:

SELECT name, value FROM YOURTABLE

这会给您的ibm控件带来压力(您使用的是经典控件还是其他类似顶点的控件)? 尝试从您的SQL查询中限制结果集。一个例子可能是:

SELECT name, value FROM YOURTABLE  FETCH FIRST 100 ROWS ONLY 

(请注意,这是DB2样式)-在MS SQL中如下所示:

SELECT TOP(100) name, value FROM YOURTABLE