Skip to main content
Solved

max_no_of_records not working for indicium_universal?


htimmermans
Captain
Forum|alt.badge.img+12

We have a table with readings per vehicle. This table is reachable via indicium universal for external parties. They can query by vehicle, sort on date etc etc… That's all fine. But if one forgets to use Ttop=10 of $top=100 for example in the URL, a list of thousans of records can and will be returned.

When setting for example max_no_of_records on a table, the (windows) GUI respects such a setting. Indicium universal however ignores this setting completely. 

Will this be introduced in a future release of indicium universal? And will there be a way to query a variant in the future? 

 

Best answer by Mark Jongeling

Hi,

Universal GUI uses the max_no_of_records setting to limit the number of records by adding the "$top={max_no_of_records}” in its request URL. When requesting data from a table using the Indicium API, the setting is not automatically applied and should be added by the user inside the Request URL.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • 529 replies
  • March 30, 2022

The page size field is respected..  however the count query to define the number of pages to show will be executed over the whole set.  But performance wise it works, because if you put a page size of 25.. only the first 25 records are returned in the Universal GUI> 


htimmermans
Captain
Forum|alt.badge.img+12
  • Author
  • Captain
  • 61 replies
  • March 30, 2022

@Freddy , not sure what you mean by “if you put a page size of 25”. Where? In the URL?

I changed the file (Default, not Variant, because a Variant cannot be selected from the url as far as I know). Still, if I only query one particular vehicle I get a few thousand results… Not 10 (based upon page_size or max_no_of_records settings, each of which I have set to 10…. Just to see what it does.

If I omit vehicle_no completely (and query a few hundred thousand rows) I blow up the complete webserver… So it would be nice to avoid this somehow, preferably by a setting like below, as I cannot predict what external parties use to query the application.via indicium universal…

 


Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • 529 replies
  • March 30, 2022

I re-read your question and I understand what you want..  guess this doesn't apply automatically as a default (if one forgets) on direct indicium queries..  would be a good idea… It would definitely have my vote. 


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3940 replies
  • Answer
  • June 15, 2022

Hi,

Universal GUI uses the max_no_of_records setting to limit the number of records by adding the "$top={max_no_of_records}” in its request URL. When requesting data from a table using the Indicium API, the setting is not automatically applied and should be added by the user inside the Request URL.


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