<?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: Geodatabase size increases dramatically when closing a table in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288132#M479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No.&lt;BR /&gt;&lt;BR /&gt;I think the root problem here is that you're using the wrong API.&amp;nbsp; File geodatabase, like the SQL&lt;BR /&gt;databases it models, is row-oriented framework --&amp;nbsp; row insert is dirt cheap, but column update&lt;BR /&gt;is ruinously expensive -- and you're trying to use it to fill a table in column-major order.&amp;nbsp; I think&lt;BR /&gt;a spreadsheet API might be more appropriate to your use case.&amp;nbsp; If you must use FGDBAPI, then&lt;BR /&gt;you're going to have to create one table per "column" (a join key and the column data), finish&lt;BR /&gt;your modelling, then open the N tables and join them on the fly to produce the final table.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am afraid a spreadsheet won't solve our needs because we want to display a feature class. The values from the feature classes attribute table shall be shown in multible layers (one for each time step) and we want to use ArcGIS symbology.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think we will check the option with the separate tables. This case, we would make a join in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;each time step table with the table that contains the information for this time step.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 08:53:32 GMT</pubDate>
    <dc:creator>UlrichEgger</dc:creator>
    <dc:date>2014-02-20T08:53:32Z</dc:date>
    <item>
      <title>Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288118#M465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I observed the issue that file geodatabases written with the File Geodatabase API are relatively large. When opening a feature class written with the File Geodatabase API e.g. in ArcMap and then adding a field followed by deleting the same field, the size is reduced very much (about 1/10th of the original size).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to debug the problem and I found that at the end of writing data into the file geodatabase, the size is still o.k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The size grows during the call of FileGDBAPI::Geodatabase::CloseTable (Table &amp;amp;table) (see code snipped below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our case the problem is that we deal with a large number of polygons quite often. So it makes a big difference if the result database is 1GB or 10 GB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int GeodatabaseResultWriter::Terminate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GdbWrapper::CheckResult(gdb-&amp;gt;waterLevelTable.FreeWriteLock()) != 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //size of geodatabase still small&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GdbWrapper::CheckResult(gdb-&amp;gt;geodatabase.CloseTable(gdb-&amp;gt;waterLevelTable))!= 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //geodatabase has grown !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GdbWrapper::CheckResult(CloseGeodatabase(gdb-&amp;gt;geodatabase))!= 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 06:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288118#M465</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-21T06:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288119#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rather than a code fragment can you send code that reproduces the problem. We have not been able to reproduce this based on your code fragment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "I tried to debug the problem and I found that at the end of writing data into the file geodatabase, the size is still o.k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The size grows during the call of FileGDBAPI::Geodatabase::CloseTable (Table &amp;amp;table) (see code snipped below)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The size grows while you are writing data to the table, yes? And then the size increases even more (how much) on CloseTable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288119#M466</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2014-01-22T19:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288120#M467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that what you are seeing is how the file system works on Windows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you open a file, and write data into it, the file is obviously larger than it was before.&amp;nbsp; One would naturally assume that if you checked the size of the file that you would see that the size had changed.&amp;nbsp; The confusing thing is that Windows does not guarantee that the file system metadata will be flushed until the file is closed, and even then, there might be a delay until the new size is visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 20:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288120#M467</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2014-01-22T20:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288121#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is obvious that the size must grow when writing the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is also o.k. if that occurs when closing the table and not before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The strage thing is that when opening the table in ArcGIS and adding /removing a single field,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the size is reduzed ! Is seems like ArcGIS is able to "repair" it somehow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to find out what I am doing wrong when writing the database. Or is it a bug of the API ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attachments, you can find an example where I reproduced the behaviour. It does the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;same thing like my program but writes some random dummy data. You can take the Editing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;example from the samples in API version 1.3 and replace Editing.cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you also need to put the geodatabase Result2D.gdb in the samples/data directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After running the program check the size of the geodatabase Result2D_writing.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get 235 MB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then open the feature class Topo_decimated of the database Result2_writing.gdb in ArcGIS, open the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attribute table, add a field and delete it again. Then check the size of the geodatabase again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get 4,75 MB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 10:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288121#M468</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-23T10:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288122#M469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please see my new message below. I have posted an example to reproduce the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Originally I hoped that this might be a known problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 10:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288122#M469</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-23T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288123#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have posted an example to reproduce the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Rather than a code fragment can you send code that reproduces the problem. We have not been able to reproduce this based on your code fragment.&lt;BR /&gt;&lt;BR /&gt;Also:&lt;BR /&gt;&lt;BR /&gt; "I tried to debug the problem and I found that at the end of writing data into the file geodatabase, the size is still o.k.&lt;BR /&gt;The size grows during the call of FileGDBAPI::Geodatabase::CloseTable (Table &amp;amp;table) (see code snipped below)"&lt;BR /&gt;&lt;BR /&gt;The size grows while you are writing data to the table, yes? And then the size increases even more (how much) on CloseTable?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 10:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288123#M470</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-23T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288124#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the repro case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you are seeing is not at all a bug.&amp;nbsp; It is the expected behavior when you perform a large number of updates to your data.&amp;nbsp; Additionally, the same thing happens in ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason that the files become very large when you do a great deal of updates is that the update process often creates internal fragmentation in the files.&amp;nbsp; Usually, this happens when an updated record requires more storage than it did before.&amp;nbsp; When this occurs, the record must be written out to a new location in the file, and the previous location is marked as deleted or free space within the file.&amp;nbsp; All of these deleted records are kept track of in the "freelist" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of ways that the free space can be recovered.&amp;nbsp; You discovered one of them, which is deleting a field.&amp;nbsp; When a field is deleted, the entire file is rewritten one record at a time, but the deleted records are skipped.&amp;nbsp; The better way to recover free space is to run the Compact Database command in ArcGIS.&amp;nbsp; You can do that from the database property page, or from a GP tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the FileGDB API, we did not expose CompactDatabase functions in the original design.&amp;nbsp; However, we are in the process of creating an updated release with many enhancements and bug fixes.&amp;nbsp; We will add CompactDatabase functions as part of this new release.&amp;nbsp; Our plan is to have the new release ready around the time of the Developer Summit in March.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288124#M471</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2014-01-23T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288125#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dsousa, thank you very much for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes indeed such a function like CompactDatabase I also looked for in the doku.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be a great improvement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will I be able to call this method also before closing the table or after I did some&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;updates (e.g. after each timestep). Or will I have to close table / geodatabase &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The intention of the question is: If I have a result of about 2GB, wich is about 100GB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the fragmented way, will I be also able to avoid that the geodatabase needs 100GB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of free disk space before beeing compacted ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 06:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288125#M472</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-24T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288126#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Compact does not require that the Table or Geodatabase be closed first.&amp;nbsp; Compact can take a significant amount of time to run, depending on how much fragmentation is present and how big the file is.&amp;nbsp; Because of that, you might want to minimize the frequency of using it.&amp;nbsp; It is similar in some respects to running a disk de-fragmenter.&amp;nbsp; Since it takes a lot of time, you might not want to run it several times a day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288126#M473</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2014-01-30T17:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288127#M474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought I would run it once before the table is closed (= the time when by experience the size of the geodatabase on the disk grows)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 13:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288127#M474</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-01-31T13:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288128#M475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Keep in mind that the storage increase is due to fragmentation caused by updates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The "compact" function rewrites the file, causing storage to initially grow by the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;size of the compacted data before the fragmented file is deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your updates are so voluminous that a 2Gb table grows to 100Gb, you might want&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to look at using memory-based techniques for doing the updates, and only flushing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the results when the changes have been completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 01:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288128#M475</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-02-01T01:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288129#M476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I thought I would run it once before the table is closed (= the time when by experience the size of the geodatabase on the disk grows)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Compact is an operation on the Geodatabase object, and it does not matter if the table is open or closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I explained before, the table does not increase in size when you close it.&amp;nbsp; The file size increases because of inserts or updates.&amp;nbsp; But, there can be a delay in in updating the file system metadata to reflect the newly increased size.&amp;nbsp; When the file is closed, that process is accelerated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 22:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288129#M476</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2014-02-03T22:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288130#M477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Keep in mind that the storage increase is due to fragmentation caused by updates.&lt;BR /&gt;The "compact" function rewrites the file, causing storage to initially grow by the&lt;BR /&gt;size of the compacted data before the fragmented file is deleted.&lt;BR /&gt;&lt;BR /&gt;If your updates are so voluminous that a 2Gb table grows to 100Gb, you might want&lt;BR /&gt;to look at using memory-based techniques for doing the updates, and only flushing&lt;BR /&gt;the results when the changes have been completed.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, but then I need to know how to flush. I would expect to have methods of the table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to either flush results at the end of writing or alternatively reserve the needed space at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the beginning. I don't see any benefit of keeping the values in our own arrays until the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end of the simulation if we do the same thing at a later stage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, we create all columns at the beginning. Do you think it might be worth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trying to create the culumns not during initialization but directly before writing it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So we would get a sequence like "create column, write values, create column, write values ..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of "create all columns, write values, write values, ...."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And is there any such method to write an array of values to a column as 1 block instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;writing single values?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 07:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288130#M477</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-02-07T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288131#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Currently, we create all columns at the beginning. Do you think it might be worth&lt;BR /&gt;trying to create the culumns not during initialization but directly before writing it?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; And is there any such method to write an array of values to a column as 1 block instead of&lt;BR /&gt;writing single values?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the root problem here is that you're using the wrong API.&amp;nbsp; File geodatabase, like the SQL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;databases it models, is row-oriented framework --&amp;nbsp; row insert is dirt cheap, but column update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is ruinously expensive -- and you're trying to use it to fill a table in column-major order.&amp;nbsp; I think&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a spreadsheet API might be more appropriate to your use case.&amp;nbsp; If you must use FGDBAPI, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you're going to have to create one table per "column" (a join key and the column data), finish&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;your modelling, then open the N tables and join them on the fly to produce the final table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288131#M478</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-02-07T12:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288132#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No.&lt;BR /&gt;&lt;BR /&gt;I think the root problem here is that you're using the wrong API.&amp;nbsp; File geodatabase, like the SQL&lt;BR /&gt;databases it models, is row-oriented framework --&amp;nbsp; row insert is dirt cheap, but column update&lt;BR /&gt;is ruinously expensive -- and you're trying to use it to fill a table in column-major order.&amp;nbsp; I think&lt;BR /&gt;a spreadsheet API might be more appropriate to your use case.&amp;nbsp; If you must use FGDBAPI, then&lt;BR /&gt;you're going to have to create one table per "column" (a join key and the column data), finish&lt;BR /&gt;your modelling, then open the N tables and join them on the fly to produce the final table.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am afraid a spreadsheet won't solve our needs because we want to display a feature class. The values from the feature classes attribute table shall be shown in multible layers (one for each time step) and we want to use ArcGIS symbology.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think we will check the option with the separate tables. This case, we would make a join in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;each time step table with the table that contains the information for this time step.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 08:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288132#M479</guid>
      <dc:creator>UlrichEgger</dc:creator>
      <dc:date>2014-02-20T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase size increases dramatically when closing a table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288133#M480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you used a spreadsheet to accumulate your data, then you could transfer the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;completed table at little cost.&amp;nbsp; The same goes for memory.&amp;nbsp; But you will not ever&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; achieve efficiency in column-oriented update of an FGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 18:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-size-increases-dramatically-when/m-p/288133#M480</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-02-20T18:03:20Z</dc:date>
    </item>
  </channel>
</rss>

