Mike Fechner
375 posts
Registered:
14 Sep 2016
28 Jul 2023
in reply to
Roger Blanchard
Link to this post
Hi Roger,
this is difficult to answer without understand how the import routine has previously been written - but assuming that was reading text files and doing straight CRUD (FOR EACHes etc) to the database, it's not surprising that the Business Entities and Dataset Models are slower.
OERA (or any application model that suggests single-responsibility and reusability) is not primarily there to make the application run faster. Spaghetti code is usually the fastest way to solve a problem, the fastest way to initially implement the code and the fastest way to execute the code.
But a nightmare in maintenance ...
So it's fair to assume that structuring code in more code units brings overhead. Business Entities in addition provide more overhead because data is read into temp-tables before you consume it and you create/update data in temp-tables first and then populate the changes into the database.
There's just sooo much more going on.
There are alternative methods or data access we use when reusability (of calculated fields) is not that relevant. The business entity designer can generate repositories for value objects. That's a more lightweight method of reading data. It on purpose dismissed the separation between business logic (BE) and data access.It's a faster way to implement calculated fields for instance.
Having that said, you might want to review your startup parameters. A large -D, -q and -reusableObjects can significantly improve performance of OOABL applications and especially the SmartComponent Library.
Temp-Tables and ProDatasets benefit from a large -Bt and -tmpbsize 8