Say you have a large model with more than 500 mapped tables. Surely you will notice how the designer becomes a little unresponsive on saving. There is a simple explanation for this.
By default OpenAccess generates a file per class. Every time you perform a save on the document code generation of all files is performed. This is basically generating content for each and every file, comparing this content with the one from the old file if available, and based on that writing it to the file system. And let’s of course not forget that we should also take into account the performance overhead caused by the source control.
This sequence is executed for every class in the model. In this case more than 500 files will be generated and this could really hurt the performance.
However there is a simple approach to solving this issue. Just open the model settings dialog and on the code generation tab uncheck the Generate multiple files checkbox. This would ensure that the above sequence is only executed once and all of the content is generated in a single file.
This will speed the save operation by up to 8 times.
Stay tuned for more tips on working with OpenAccess.
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.