2.10 Apply basic performance optimization in F&O apps Flashcards

1
Q

Cached data?

A

Information that is retrieved from an outside source that is used on your computer

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

Why Cache data?

A

Decreases loading times by reducing the number of calls that are made to the database

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

Property name on a table for cache settings?

A

CacheLookup

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

Types of caching tables?

A

Set-based caching
Single-record caching

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

Set-based caching?

A

Caches groups of records all at once
Set “CacheLookup” property to “Entire Table”
Avoid for large tables

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

Single-Record caching?

A

Caches a single record
Must meet 2 conditions to use single-record caching

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

For single-record caching, what should “cacheLookup” property be set to?

A

NotInTTS
Found
FoundAndEmpty

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

Types of temporary tables?

A

InMemory
TempDB

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

InMemory?

A

Uses an indexed sequential access method (ISAM) file that exists on the client tier or the AOS tier.
The data is stored in memory until it reaches 128kb

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

When is InMemory table instantiated?

A

When the first record is inserted, the table exists while a record buffer exists

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

When to use InMemory?

A

When you need to store and retrieve data without writing data to the database, like a container but you can use indexes

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

TempDB?

A

Uses SQL Server TempDB database.
Causes for data to be removed when it is no longer used by the current method or when the system is restarted

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

Capabilities of TempDB?

A

Joining to regular tables
Using FK
Being per company or global
Having indexes
Having methods, but override inability
Instantiating from the client or server tier
Being used as query

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

Limitations of TempDB?

A

Inability to manage date-effective data
No delete actions
RLS does not apply
Can’t use them in views

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

When to use set-based statements?

A

Update, insert, or delete multiple records of data from a table

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

When to use row-based statements?

A

Update, insert, or delete a single record from a table

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

Why use set-based over row-based?

A

Performance wise set-based is better as it doesn’t call the server every time a different record is modified

18
Q

Set-based methods?

A

update_recordset
delete_from
insert_recordset

19
Q

Best practices to apply to queries?

A

All queries should pull only the required data needed
Avoid nested queries

20
Q

4 types of joins?

A

Join
Outer Join
Exists Join
Notexists Join

21
Q

Join?

A

Pulls records that match on both tables, like inner join

22
Q

Outer join?

A

Pulls records regardless of whether those records match on both tables

23
Q

Exists join?

A

Pulls all the records from the first table that match the records in the second table, no records from the second table are returned

24
Q

Notexists join?

A

Pulls all the records from the first table that do not match the records in the second table. No Records from the second table are returned

25
Q

What concurrency models does F&O apps use?

A

PCC
OCC

26
Q

PCC?

A

Pessimistic Concurrency Control
Locks records as soon as they are retrieved from the DB

27
Q

OCC?

A

Optimistic Concurrency Control
Locks records when they are being updated

28
Q

When to use PCC?

A

When there is a serialization logic that requires locks on the record, or when update conflicts are likely

29
Q

When to use OCC?

A

Used on tables where it improves throughput in contrast to PCC
Preferred if the table is modified from a form and not from code

30
Q

Advantages of OCC for increasing performance?

A

Fewer resources are used to lock records during updates
Records are locked for a shorter length of time by using OCC instead of PCC
Records remain available for other processes while they are selected from the database

31
Q

Disadvantage of OCC?

A

When 2 processes try to update the same record at the same time

32
Q

Different types of parallel processing?

A

Individual task modeling
Batch bundling
Top picking

33
Q

Individual task modeling?

A

Creates a separate batch task for each work item
Works well with a small number of work items, best at creating dependencies between work items

34
Q

Batch bundling?

A

Uses limited number of batch tasks that have a bundle size value.
Works well for a simple, even workload where processing times are similar

35
Q

Top Picking?

A

Creates a limited number of batch tasks where each batch task picks and processes the first free work item.
Requires a staging table to store work items for batch tasks to process from

36
Q

Why use async processes?

A

Long-running processes can time out in F&O, async allows users continue working while the process runs in the background

37
Q

Method to use async?

A

runAsync

38
Q

Why use Windows PS?

A

Use Power Shell to develop scripts that interact with F&O apps and consume management functions

39
Q

Windows PowerShell capabilities?

A

Manage computers from the CLI
Lets you access data stores, such as registry and certificate store

40
Q

Scenarios to use Microsoft PS?

A

Database Sync
Restart Services
Reset the data mart
Deploy and install models