List operations Flashcards
You have a list of users.
You want to change the age attribute of each user.
What’s the best practice to achieve this according to Mendix?
- Loop
- Change Object
- Aggregate Object
- Loop
What elements does an optimized query consist of?
A Retrieve activity and a count activity.
When are batches used?
Batches are used when large amounts of data need to be processed.
What are loops used for?
Loops are used to iterate over a list of objects. For every object in a list, the flow inside the loop is executed.
Which elements can’t be used inside a loop?
Start event and Stop events
Which events can only be used inside of a loop?
Break event and Continue event.
What is a Continue event used for?
A Continue event is used to stop the current iteration and start the iteration of the next object inside a loop.
What is a Break event used for?
A break event is used to stop iterating over the list of objects and continue with the rest of the flow.