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
3 replies
Subscribers
6 subscribers
Views
1878 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
We have to loop through a database table and get all the attachments from the db
phanibabuk
over 9 years ago
We have to loop through a database table and get all the attachments from the db to Appian KC/Folder.
We have used query database and it returns very few rows.
What is the best way to loop through a table containing 1 lac rows.
Your inputs are highly appreciated!!!
OriginalPostID-168724
OriginalPostID-168724
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 9 years ago
You could do it in batches based on the primary key or some other criteria.
In regards to the number of rows returned by the node, this is the setting in charge:
## The limit to the number of rows returned in the Database Access node
#resources.appian.process.application.arv.limit=10
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajivr
Certified Associate Developer
over 9 years ago
When u have more no of rows in a table, other way around is:
you can configure the pagingInfo parameter(default parameter) of your query rule.
Say u have query rule rule!myQueryRule(pagingInfo). you can configure this within a with loop in a script task and do your batch processing within that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@phanibabuk As said by Eduardo, retrieving in batches is the only solution. I would like to recommend the usage of a!queryEntity() incase if your implementation involves Appian's OOTB query rules other than Query Database node (Reference: https://forum.appian.com/suite/help/7.10/Querying_Data_From_an_RDBMS.html).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel