<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Large Dataset Query</title><link>https://community.appian.com/discussions/f/data/26112/large-dataset-query</link><description>I am looking for suggestions on the best and fastest way to query data that has about 50,000 rows of data. My use case is data collection for inventory purposes where an operator will use a handheld device and scan and item_id barcode, the application</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Large Dataset Query</title><link>https://community.appian.com/thread/102311?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 19:46:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c180872-e566-405d-992a-4b258a64266f</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Agree with Mike - by filtering under a!queryEntity() you should only need to retrieve 1 or 0 rows to determine if the item is present (and get the details on it).&amp;nbsp; Aside from [most often] not being necessary, retrieving 50,000 rows in batches of &amp;lt; 1 MB, during each scan, would be a nightmare for performance.&lt;/p&gt;
&lt;p&gt;We have one MSSQL table with 7 million rows which is queried 2,000+ times a day for a subset of 0 to ~10 rows each time, runs like a champ.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large Dataset Query</title><link>https://community.appian.com/thread/102308?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 19:31:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5291b18a-a442-4907-b35a-91a077964a78</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;These sound like standard use cases for &lt;strong&gt;&lt;em&gt;a!queryEntity()&lt;/em&gt;&lt;/strong&gt; - the only time you&amp;#39;d have issues is if you&amp;#39;re trying to &lt;em&gt;retrieve&lt;/em&gt; several thousand &lt;em&gt;rows of data&lt;/em&gt; all at once, but the use cases you list here don&amp;#39;t seem to indicate a need to do that.&lt;/p&gt;
&lt;p&gt;For instance, querying an item from a 50,000 row DB to match a single scanned bar code, I would not expect to be any sort of difficult thing for a normal query filtering by, for example, a barcode number field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>