angela
8 years agoCatalyst II
SQL-Procedures vs. applySQL - what´s less not recommended?
Hi,
"AML first" is probably on of the most important things to consider when developing custom code in Aras.
And luckily most of all use cases can be covered with AML. But sometimes things have to be done with SQL.
I wonder if there is a benefit when using SQL-procedures instead of applySQL?
From my current point-of-view, the main benefit for procedures is that they can be reused for different ItemTypes. A typical usecase for SQL-procedures is e.g. the Files flag that we can see at the ItemTypes "Part", "Document", etc.
Procedures maybe also have some benefits when it comes to safety and performance topics. But in my case my few applySQL Methods (e.g. for changing the minor_rev property) can just be triggered by a limited amount of people. So I am not sure, if using procedures here would really bring some real benefit. It´s right now not a real problem in our environment, it´s more a question of personal interest.
Are there some general recommondations avialable?
Angela