No.No.I think the root problem here is that you're using the wrong API. File geodatabase, like the SQLdatabases it models, is row-oriented framework -- row insert is dirt cheap, but column updateis ruinously expensive -- and you're trying to use it to fill a table in column-major order. I thinka spreadsheet API might be more appropriate to your use case. If you must use FGDBAPI, thenyou're going to have to create one table per "column" (a join key and the column data), finishyour modelling, then open the N tables and join them on the fly to produce the final table.- V
Currently, we create all columns at the beginning. Do you think it might be worthtrying to create the culumns not during initialization but directly before writing it?
And is there any such method to write an array of values to a column as 1 block instead ofwriting single values?
Keep in mind that the storage increase is due to fragmentation caused by updates.The "compact" function rewrites the file, causing storage to initially grow by thesize of the compacted data before the fragmented file is deleted.If your updates are so voluminous that a 2Gb table grows to 100Gb, you might wantto look at using memory-based techniques for doing the updates, and only flushingthe results when the changes have been completed.- V
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)
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.Also: "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.The size grows during the call of FileGDBAPI::Geodatabase::CloseTable (Table &table) (see code snipped below)"The size grows while you are writing data to the table, yes? And then the size increases even more (how much) on CloseTable?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.