<?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: Query local geodatabase replica directly in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/query-local-geodatabase-replica-directly/m-p/88259#M884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found my issue.&amp;nbsp; I was creating multiple instances of the FMDatabase connection across threads.&amp;nbsp; I isolated each thread to have only one instance of FMDatabase and our issue appears to be resolved.&amp;nbsp; Hopefully this helps someone out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 19:01:35 GMT</pubDate>
    <dc:creator>JustinBurns1</dc:creator>
    <dc:date>2014-09-29T19:01:35Z</dc:date>
    <item>
      <title>Query local geodatabase replica directly</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/query-local-geodatabase-replica-directly/m-p/88258#M883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had success executing queries against a local (offline) geodatabase replica through non-ESRI libraries?&amp;nbsp; When we execute a query containing a JOIN statement using FMDatabase for iOS recently added records from all tables are essentially deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, consider a geodatabase that has a point feature class representing baseball stadium locations (BallparkLocations), a table containing information on the team (TeamInfo) and tables for events (Events, Games, etc).&amp;nbsp; Say I create a new ball park and associated team info, using the ArcGIS Runtime SDK for iOS saveFeature method.&amp;nbsp; The records are linked by primary key/foreign key GUID values.&amp;nbsp; If I then turn around and execute a query using FMDatabase that contains a JOIN statement, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT e.Name, e.StartTime, g.Opponent FROM Events_evw e JOIN Games_evw g ON e.primaryGuid = g.foreignGuid WHERE e.BallparkGuid = '{some ballpark guid}'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query executes fine and returns results, but the records I just added to BallparkLocations and TeamInfo are gone.&amp;nbsp; This is a real problem with complex applications since the SDK does not provide a means to execute complex select statements and querying multiple tables with the asynchronous blocks, the only option provided by the SDK, is very cumbersome.&amp;nbsp; Any ideas or lessons learned would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Justin Burns&lt;/P&gt;&lt;P&gt;Sr. Geospatial Developer&lt;/P&gt;&lt;P&gt;GISi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 23:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/query-local-geodatabase-replica-directly/m-p/88258#M883</guid>
      <dc:creator>JustinBurns1</dc:creator>
      <dc:date>2014-09-25T23:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query local geodatabase replica directly</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/query-local-geodatabase-replica-directly/m-p/88259#M884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found my issue.&amp;nbsp; I was creating multiple instances of the FMDatabase connection across threads.&amp;nbsp; I isolated each thread to have only one instance of FMDatabase and our issue appears to be resolved.&amp;nbsp; Hopefully this helps someone out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 19:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/query-local-geodatabase-replica-directly/m-p/88259#M884</guid>
      <dc:creator>JustinBurns1</dc:creator>
      <dc:date>2014-09-29T19:01:35Z</dc:date>
    </item>
  </channel>
</rss>

