List operations Flashcards

1
Q

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?

  1. Loop
  2. Change Object
  3. Aggregate Object
A
  1. Loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What elements does an optimized query consist of?

A

A Retrieve activity and a count activity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When are batches used?

A

Batches are used when large amounts of data need to be processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are loops used for?

A

Loops are used to iterate over a list of objects. For every object in a list, the flow inside the loop is executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which elements can’t be used inside a loop?

A

Start event and Stop events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which events can only be used inside of a loop?

A

Break event and Continue event.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Continue event used for?

A

A Continue event is used to stop the current iteration and start the iteration of the next object inside a loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Break event used for?

A

A break event is used to stop iterating over the list of objects and continue with the rest of the flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly