]> gerrit.simantics Code Review - simantics/platform.git/commit
Less memory use for TG import when NamespaceMigrationStep is involved 32/432/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 19 Apr 2017 19:23:13 +0000 (22:23 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 19 Apr 2017 20:15:08 +0000 (23:15 +0300)
commitdf73f31702b7256c0f06a94cd553b637220d830a
tree533d804291646aa6c48792114392cd2097b7641f
parentb0298def70f7b737fa79994ad7f4f098d28becfe
Less memory use for TG import when NamespaceMigrationStep is involved

MigrationStateImpl.getProperty for root resource(s) keys now first
exports CURRENT_TG back to disk if the TG has already been loaded and
then imports it back using StreamingTransferableGraphImportProcess. This
avoids the need to keep the whole TransferableGraph1 in memory while
doing the import and also allows for the use of the leaner Streaming
import process.

refs #7153

Change-Id: I37e6a30ec8d31452a66f15378e446efbfb811ffa
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationStateImpl.java
bundles/org.simantics.graph.db/src/org/simantics/graph/db/StreamingTransferableGraphImportProcess.java
bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphs.java