You are viewing limited content. For full access, please sign in.

Question

Question

SDK performance issue for getting ID for Search

SDK
asked on November 28, 2022 Show version history

Hi,

We are facing performance issue with SDK Query when fetching Document ID from SDK. We ran this in difference environment and found the same.



Steps for searching.

Create Search Object
Set the search Query ((({LF:Created>=\"10-01-2022\"} | {LF:Modified>=\"10-01-2022\"})))
Execute the search[search.Run();]
Create search listing [var l = new SearchListingSettings();]
Set the required data[ID, Name, Created By, Created On, Template etc]
Get resulting data[var lst = search.GetResultListing(l);]
Loop through the result result for first 20 documents


Attached the code used for the testing.



Problem Statement:

Always 3rd document ID in the search result is time taking[3 to 7 sec], all other document ids are retrieved with <1 milliseconds
 

0 0

Replies

replied on November 29, 2022

GetResultListing takes a second parameter that tells it how many rows you want to load in the initial call. You can try increasing this , which might resolve the problem or it might just push it down the road to a later query.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.