2.10 Apply basic performance optimization in F&O apps Flashcards

(40 cards)

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
What concurrency models does F&O apps use?
PCC OCC
26
PCC?
Pessimistic Concurrency Control Locks records as soon as they are retrieved from the DB
27
OCC?
Optimistic Concurrency Control Locks records when they are being updated
28
When to use PCC?
When there is a serialization logic that requires locks on the record, or when update conflicts are likely
29
When to use OCC?
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
Advantages of OCC for increasing performance?
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
Disadvantage of OCC?
When 2 processes try to update the same record at the same time
32
Different types of parallel processing?
Individual task modeling Batch bundling Top picking
33
Individual task modeling?
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
Batch bundling?
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
Top Picking?
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
Why use async processes?
Long-running processes can time out in F&O, async allows users continue working while the process runs in the background
37
Method to use async?
runAsync
38
Why use Windows PS?
Use Power Shell to develop scripts that interact with F&O apps and consume management functions
39
Windows PowerShell capabilities?
Manage computers from the CLI Lets you access data stores, such as registry and certificate store
40
Scenarios to use Microsoft PS?
Database Sync Restart Services Reset the data mart Deploy and install models