<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating views in SQLite using runtime database in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533058#M4576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your question. &amp;nbsp;It might be possible to do what you suggest, but take a look at the `queryStatisticsWithParameters` method on `AGSFeatureTable`:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#a76af7aeeb00c426b7e29be841f11e829" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#a76af7aeeb00c426b7e29be841f11e829"&gt;ArcGIS Runtime SDK for iOS: AGSFeatureTable Class Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what you're doing, that may fit your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a sample for it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/v.next/arcgis-ios-sdk-samples/Analysis/Statistical%20query/StatisticalQueryViewController.swift" title="https://github.com/Esri/arcgis-runtime-samples-ios/blob/v.next/arcgis-ios-sdk-samples/Analysis/Statistical%20query/StatisticalQueryViewController.swift"&gt;arcgis-runtime-samples-ios/StatisticalQueryViewController.swift at v.next · Esri/arcgis-runtime-samples-ios · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2018 16:35:17 GMT</pubDate>
    <dc:creator>MarkDostal</dc:creator>
    <dc:date>2018-07-10T16:35:17Z</dc:date>
    <item>
      <title>Creating views in SQLite using runtime database</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533057#M4575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm increasingly running into situations where for whatever reason I end up querying all the features in a AGSGDBFeatureLayer and iterating through them to do X. &amp;nbsp;Typically X is pulling data for&amp;nbsp;summary statistics of some sort, various counts of related things, tallying up distances, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if&amp;nbsp;it would be possible, and if anyone has attempted, to use the SQLite db powering the runtime database to create custom views. &amp;nbsp;The thought being that once a project database has been downloaded to a device a little routine could go in and join things up in views to power these summary activities and save the compute required to run these summary routines... which run a serious risk of causing trouble when we get into large quantities of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do this all the time on the web side of things and I'm a bit jealous of our web developers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 23:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533057#M4575</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2018-05-30T23:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating views in SQLite using runtime database</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533058#M4576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your question. &amp;nbsp;It might be possible to do what you suggest, but take a look at the `queryStatisticsWithParameters` method on `AGSFeatureTable`:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#a76af7aeeb00c426b7e29be841f11e829" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_feature_table.html#a76af7aeeb00c426b7e29be841f11e829"&gt;ArcGIS Runtime SDK for iOS: AGSFeatureTable Class Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what you're doing, that may fit your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a sample for it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/v.next/arcgis-ios-sdk-samples/Analysis/Statistical%20query/StatisticalQueryViewController.swift" title="https://github.com/Esri/arcgis-runtime-samples-ios/blob/v.next/arcgis-ios-sdk-samples/Analysis/Statistical%20query/StatisticalQueryViewController.swift"&gt;arcgis-runtime-samples-ios/StatisticalQueryViewController.swift at v.next · Esri/arcgis-runtime-samples-ios · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533058#M4576</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2018-07-10T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating views in SQLite using runtime database</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533059#M4577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark! &amp;nbsp;I think that will be just the ticket for a few of our use cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases it would be really helpful if we could do queries like this against joined tables. &amp;nbsp;Is this supported in v100 or are there plans to support joined tables in the future?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533059#M4577</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2018-07-10T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating views in SQLite using runtime database</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533060#M4578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the SQLite DB directly without issue in several apps that I've worked on but there are limitations. &amp;nbsp;There is no way to run spatial joins directly in SQLite or deserialize geometry BLOBS after you read them.&amp;nbsp;If you're trying to do non-spatial joins/aggregation it should work just fine and you can create views just like you would in any other SQLite DB. Like Mark said, summary stats are also an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, With Objective-C, I used &lt;A href="https://github.com/ccgus/fmdb"&gt;FMDB&lt;/A&gt; and with Swift I started using&amp;nbsp;&lt;A href="https://github.com/stephencelis/SQLite.swift"&gt;SQLite.swift&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533060#M4578</guid>
      <dc:creator>ChristopherMilack1</dc:creator>
      <dc:date>2018-07-10T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating views in SQLite using runtime database</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533061#M4579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ServiceFeatureTable (a related table or not) will support queryStatistics (if advanced query operation is enabled on the Service).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If by "join" you mean the&amp;nbsp;JOIN Feature in Analysis available in AGOL, then yes, it is supported as well. Join here creates a new hosted Service with the joined fields and some statistic fields. So in Runtime, we just treat it as another ServiceFeatureTable and you can perform query operations on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/creating-views-in-sqlite-using-runtime-database/m-p/533061#M4579</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2018-07-10T19:18:34Z</dc:date>
    </item>
  </channel>
</rss>

