Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
9 subscribers
Views
3703 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
This is a best practices question, Should data be written to a data store after
bonniet
over 10 years ago
This is a best practices question, Should data be written to a data store after every UI node in a process or after all of the information has been collected from several separate nodes, does that depend on the process requirements or is there some established rule of thumb that should be followed?
OriginalPostID-139908
OriginalPostID-139908
Discussion posts and replies are publicly visible
0
karthikd
Certified Senior Developer
over 10 years ago
I don’t think it is necessary to write to DB after every UI node. It would be purely on requirement. It is better to write after you have collected all data to avoid multiple DB interaction.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
It would really depend on your overall application design. If you are reporting on the RDBMS data using a 3rd party tool or SAIL reports using queryrules/entity then you might want to consider writing after every UI node to ensure that the data is up to date. If the RDBMS is seen as the primary source of data then this is another good reason to consider multiple writes.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bonniet
over 10 years ago
Great, thanks to you both.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
David Williams
over 10 years ago
From personal experience what I have found is that if the process is long running, so for example a case management style process you should do regular write downs. But if the process is short lived, then you can build the data in a CDT and the drop it in to the db at the end of the process instead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bonniet
over 10 years ago
Good to know, Thank you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 10 years ago
Apart from the asked question and mentioned explanation as you'r asking for best practice I would also like to add that if your application needs to write data to data store entity multiple times then a separate sub process should be maintained just for writing the data on database, its not a thumb rule but surely makes your process models more configurable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel