Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Ricardo Sousa
1
Views
3
Comments
Changed Attributes - Will an unchanged record trigger an update query?
Question
The documentation* states:
When the Update Behavior is set to 'Changed Attributes', even if there are no changed attributes,
there is still an update event
to ensure that listening BPT Processes are notified.
Does this mean that an update query will still be issued? What I'm interested to know is: will the update be sent to the database and, for that reason, will a lock be created on that record?
*https://www.outsystems.com/help/servicestudio/9.0/default.htm#Using_Data/Entity_Properties.htm
João Rosado
Staff
Hi Ricardo,
Yes a update with still be sent to the database and the lock will still be issued for the record.
The update query will be the simplest as possible and look something like
Update {Entity} set [OneOfTheAttributes] = [OneOfTheAttributes] where [Id] = @id
Regards,
João Rosado
Ricardo Sousa
Hi João and thank you for the feedback.
Just to be 100% clear, So it will issue a update like:
Update {Entity} set [OneOfTheAttributes] = [SameValueAsTheOneCurrentyOnTheDB] Where [Id] = @id
?
João Rosado
Staff
It's like the one I said, just the column name on both sides so it uses the value already in the table without having to read it.
Regards,
João Rosado
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...