Mobile Development Basics Flashcards

1
Q

How can I create 1-to-1 relationships on Entities?

A

Create the two entities, change Id type of the second Entity the the one of the first one.

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

How can I enshure uniqueness of associations in many to many relationships?

A

Open the junction entities Entity Editor, go to the iondex tab. There create an index containing the two Id’s and set the index to unique. Then a db Error is raised, every time someone tries to create double relations.

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

How can the performance on fetching entities be improved. What are the obstructions?

A

You can create an index on an entity attribute for which you filter the entity. Will improve the performance on large entities. Only creates indices on Id’s, for text fields they are a performance nightmare.

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

How can I enshure that an action processing an aggregates data list only gets executed when the data has been fetched?

A

Use on after fetch of the Aggregate or put the action in OnReady and begin with an if which checks if the Aggregates List Boolean IsDataFetched is true.

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