{"id":72828,"date":"2026-10-22T13:45:58","date_gmt":"2026-10-22T05:45:58","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=72828"},"modified":"2026-10-23T00:20:10","modified_gmt":"2026-10-22T16:20:10","slug":"limits-and-performance","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/","title":{"rendered":"Limits and Performance"},"content":{"rendered":"<p class=\"intro-text\">OI OData protects the server with a few limits. This page explains what they are, how they affect datasets, and how to write queries that stay fast on large systems.<\/p>\n\n<p class=\"left-bar\">This article applies to version 26R2 and later of IFS OI Explorer.<\/p>\n<h2 id=\"limits-at-a-glance\" class=\"page-subheading\">Limits at a glance<\/h2>\n<table style=\"width: 70.1459%; border-collapse: collapse; margin: 15px 0px 20px; border: 1px solid #cccccc;\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left; width: 13.5372%;\">Limit<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left; width: 15.4681%;\">Value<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left; width: 37.7466%;\">Applies to<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Rows per response<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">1,000<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Every object. Larger results are split into pages. Union and $crossjoin return up to 5,000 rows in one response, and reject a larger result.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Rows in a dataset<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">1,000<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">OI OData datasets read one response only<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Maximum <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$top<\/code><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">1,000<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Every object. The <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">top<\/code> of Union and $crossjoin isn't limited to 1,000.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Fetch cap<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">5,000 rows<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Live objects. <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$count<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">apply<\/code> on one with more than 5,000 rows are rejected<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Paging depth<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">100,000 rows<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Live objects: <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$skip<\/code> plus <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$top<\/code> without a <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$filter<\/code> can't reach further. Add a <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$filter<\/code>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Result cap<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">5,000 rows<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Union and $crossjoin: a larger result is rejected, with or without <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$skip<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$orderby<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Objects in a <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$crossjoin<\/code><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">3<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Each object only once<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Expand depth<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">1 to 6 levels, depending on the object<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$expand<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Request timeout<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">The datasource's <strong>Request Timeout<\/strong> (1 minute by default)<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">OI OData datasets<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 13.5372%;\">Database query timeout<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 15.4681%;\">30 seconds<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px; width: 37.7466%;\">Every SQL query the service runs<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"the-1000-row-dataset-limit\" class=\"page-subheading\">The 1,000-row dataset limit<\/h2>\n<p class=\"intro-text\">The OData service returns results in pages of up to 1,000 rows. The OI OData Adaptor reads <strong>the first page only<\/strong>, so a dataset holds at most 1,000 rows. If more rows match, the rest are left out without a warning.<\/p>\n<p class=\"intro-text\">To stay under the limit:<\/p>\n<ul class=\"intro-text\">\n<li><strong>Filter<\/strong> to the rows the page needs, using <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/parameters\/\">parameters<\/a> for dates and assets.<\/li>\n<li><strong>Aggregate<\/strong> on the server with <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/aggregation\/\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$apply<\/code><\/a>. A summary rarely needs 1,000 rows.<\/li>\n<li><strong>Use <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$top<\/code><\/strong> with <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$orderby<\/code> for \"top N\" or \"most recent N\" lists, so you know which rows you get.<\/li>\n<\/ul>\n<p class=\"note\"><strong>Tip:<\/strong> Make it obvious when a list is cut off. Use <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$orderby<\/code> with <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$top=1000<\/code> so the page always shows the newest or largest rows, and tell users in the page title, for example \"Latest 1,000 events\".<\/p>\n<hr \/>\n<h2 id=\"the-5000-row-fetch-cap\" class=\"page-subheading\">The 5,000-row fetch cap<\/h2>\n<p class=\"intro-text\">On <strong>live objects<\/strong>, Explorer reads at most 5,000 source rows before it applies <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$filter<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$orderby<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$apply<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$count<\/code>:<\/p>\n<p class=\"intro-text\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Templates<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Attributes<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">AttributeValues<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Tags<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Calculations<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiCases<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiIssues<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiSummaries<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiTimeWindows<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiComments<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LogSheets<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LogSheetRows<\/code><\/p>\n<p class=\"intro-text\">On a system with more than 5,000 tags, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Tags?$filter=contains(Name,'FlowRate')<\/code> only searches the first 5,000. Some matching tags can be missed.<\/p>\n<p class=\"intro-text\">Union and $crossjoin apply their cap after filtering instead, and reject a result over it with an error, so narrowing the query always helps. <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LastEntryPerWorkbook<\/code> returns every matching row.<\/p>\n<p class=\"intro-text\">A count (<code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$count=true<\/code>) or an aggregation (<code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">apply<\/code>) over part of the data would be wrong, so on a live object with more than 5,000 rows they are rejected with \"Bad Request\" and a message pointing to the database-backed object. When rows are left out of a filtered or sorted result, the response carries the header <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">X-Result-Truncated: 5000<\/code>, and the body an <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">@Ifs.OI.truncated: true<\/code> annotation. Datasets don't show this header. Check a query in a browser's developer tools, or use a database-backed object to avoid the cap altogether.<\/p>\n<p class=\"intro-text\"><strong>Exception:<\/strong> on <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LogSheetRows<\/code>, filters on <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LogSheetName<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Timestamp<\/code> joined with <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">and<\/code> run in the database <em>before<\/em> the cap. Always filter log sheet readings by sheet and time first.<\/p>\n<hr \/>\n<h2 id=\"expand-depth\" class=\"page-subheading\">Expand depth<\/h2>\n<p class=\"intro-text\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$expand<\/code> isn't used in datasets, but in a browser, Excel or Power BI, each object has a maximum nesting depth:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 15px 0 20px; border: 1px solid #cccccc;\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left;\">Depth<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left;\">Objects<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\">6<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Forms<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\">4<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Entities<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\">3<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">EntityMetadata<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiCases<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiIssues<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiSummaries<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiTimeWindows<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Templates<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Hierarchies<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">TemplateInstances<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">AttributeValueInstances<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">LogSheets<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\">2<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Attributes<\/code>, and every object not listed here<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\">1<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">AttributeValues<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">Deeper requests are rejected.<\/p>\n<hr \/>\n<h2 id=\"timeouts\" class=\"page-subheading\">Timeouts<\/h2>\n<p class=\"intro-text\">An OI OData dataset must finish within its datasource's <strong>Request Timeout<\/strong>, which is 1 minute by default. To change it, edit the datasource in Core Management. Each database query also stops after 30 seconds, so a longer Request Timeout doesn't help a slow SQL query.<\/p>\n<p class=\"intro-text\">Queries that take a long time are usually filtering or grouping a live object over many rows, or reading many <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/entries-shift-log-and-case-management\/\">live data-entry fields<\/a>. The fixes below help more than a longer timeout.<\/p>\n<hr \/>\n<h2 id=\"choosing-the-right-object\" class=\"page-subheading\">Choosing the right object<\/h2>\n<p class=\"intro-text\">If you need to search, count or group across a large volume, use the database-backed equivalent. Filtering and grouping run in SQL with no 5,000-row cap, and you can use the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-query-functions\/\">OI query functions<\/a>.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 15px 0 20px; border: 1px solid #cccccc;\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left;\">Instead of<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 8px; text-align: left;\">Use<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Templates<\/code><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">TemplateDefinitions<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Tags<\/code><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">TagDefinitions<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Calculations<\/code><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Datasets<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiCases<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiIssues<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiSummaries<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiTimeWindows<\/code> (for counts)<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 8px;\"><code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">EntryRecords<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">EntryForms<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">To find assets by a Metadata Field, use <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Entities<\/code> or <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">EntityMetadata<\/code>. On a very large asset model, match on the field's typed column, such as <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">ValueUniqueString<\/code>, rather than on <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">Value<\/code>. The typed column is indexed. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/asset-models-and-datasources\/\">Metadata<\/a>.<\/p>\n<hr \/>\n<h2 id=\"performance-checklist\" class=\"page-subheading\">Performance checklist<\/h2>\n<ol class=\"intro-text\">\n<li><strong>Use <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$select<\/code>.<\/strong> Return only the columns the page uses.<\/li>\n<li><strong>Filter first.<\/strong> In <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">$apply<\/code>, put <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">filter(...)<\/code> before <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">compute<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">groupby<\/code>.<\/li>\n<li><strong>Aggregate on the server<\/strong> instead of returning raw rows for a chart to count.<\/li>\n<li><strong>Use database-backed objects<\/strong> for search, counts and trends.<\/li>\n<li><strong>Filter entries on saved fields.<\/strong> On <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiCases<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiIssues<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiSummaries<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SapiTimeWindows<\/code>, filtering or sorting on a live data-entry field reads live values for every fetched entry. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/entries-shift-log-and-case-management\/\">Entries<\/a>.<\/li>\n<li><strong>Prefer <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">startswith<\/code> to <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">contains<\/code><\/strong> on large text searches where you can.<\/li>\n<li><strong>Avoid unbounded queries.<\/strong> Always use a time window on event objects such as <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">AnalyticsEvents<\/code>, <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">SentinelEvents<\/code> and <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">EntryAuditLogs<\/code>.<\/li>\n<\/ol>\n<hr \/>\n<h2 id=\"using-oi-odata-outside-datasets\" class=\"page-subheading\">Using OI OData outside datasets<\/h2>\n<p class=\"intro-text\">The 1,000-row dataset limit only applies to the OI OData Adaptor. Excel, Power BI and most OData libraries follow the <code style=\"display: inline !important; float: none !important; clear: none !important; overflow: visible !important; margin: 0 !important; padding: 1px 4px !important; background-color: #eeeeee; font-size: 0.9em;\">@odata.nextLink<\/code> in each response and read every page automatically.<\/p>\n<pre style=\"background-color: #eeeeee !important; padding: 20px 18px !important; margin: 10px 0 20px !important; overflow-x: auto !important; border-radius: 4px;\"><code style=\"display: block !important; float: none !important; clear: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; font-size: 14px !important; line-height: 1.55 !important; white-space: pre-wrap !important;\">https:\/\/&lt;your-oi-server&gt;\/&lt;service-root&gt;\/odata\/TagDefinitions?$select=Name,NativeName,Description<\/code><\/pre>\n<p class=\"intro-text\">In Power BI or Excel, choose <strong>Get Data \u25b8 OData Feed<\/strong> and paste the full URL.<\/p>\n<p class=\"intro-text\">Calling OI OData from Python:<\/p>\n<pre style=\"background-color: #eeeeee !important; padding: 20px 18px !important; margin: 10px 0 20px !important; overflow-x: auto !important; border-radius: 4px;\"><code style=\"display: block !important; float: none !important; clear: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; font-size: 14px !important; line-height: 1.55 !important; white-space: pre-wrap !important;\">import requests\r\n\r\nBASE = \"https:\/\/oi.example.com\/oi.core\/odata\"\r\n\r\nsession = requests.Session()\r\nsession.auth = ...  # your organisation's sign-in method (ask your OI administrator)\r\n\r\ndef odata_get(path, **params):\r\n    url, rows = f\"{BASE}\/{path}\", []\r\n    while url:\r\n        r = session.get(url, params=params)\r\n        r.raise_for_status()\r\n        if r.headers.get(\"X-Result-Truncated\"):\r\n            print(\"Warning: result truncated - consider the database-backed object\")\r\n        body = r.json()\r\n        rows += body[\"value\"]\r\n        url, params = body.get(\"@odata.nextLink\"), None\r\n    return rows\r\n\r\nwells = odata_get(\"Entities\", **{\"$filter\": \"startswith(Name,'WELL-')\", \"$select\": \"Name,LastModified\"})<\/code><\/pre>\n<hr \/>\n<p class=\"left-bar\"><strong>Next:<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/usage-analytics-and-security\/\">Usage Analytics and Security<\/a><\/p>\n<p class=\"left-bar\"><strong>Related:<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/troubleshooting\/\">Troubleshooting<\/a> \u00b7 <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/aggregation\/\">Aggregation and Calculated Columns<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OI OData protects the server with a few limits. This page explains what they are, how they affect datasets, and how to write queries that stay fast on large systems. This article applies to version 26R2 and later of IFS OI Explorer. Limits at a glance Limit Value Applies to\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/limits-and-performance\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"parent":72744,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72828","page","type-page","status-publish","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=72828"}],"version-history":[{"count":13,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72828\/revisions"}],"predecessor-version":[{"id":72918,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72828\/revisions\/72918"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72744"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=72828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=72828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=72828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}