2.10 Apply basic performance optimization in F&O apps Flashcards
Cached data?
Information that is retrieved from an outside source that is used on your computer
Why Cache data?
Decreases loading times by reducing the number of calls that are made to the database
Property name on a table for cache settings?
CacheLookup
Types of caching tables?
Set-based caching
Single-record caching
Set-based caching?
Caches groups of records all at once
Set “CacheLookup” property to “Entire Table”
Avoid for large tables
Single-Record caching?
Caches a single record
Must meet 2 conditions to use single-record caching
For single-record caching, what should “cacheLookup” property be set to?
NotInTTS
Found
FoundAndEmpty
Types of temporary tables?
InMemory
TempDB
InMemory?
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
When is InMemory table instantiated?
When the first record is inserted, the table exists while a record buffer exists
When to use InMemory?
When you need to store and retrieve data without writing data to the database, like a container but you can use indexes
TempDB?
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
Capabilities of TempDB?
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
Limitations of TempDB?
Inability to manage date-effective data
No delete actions
RLS does not apply
Can’t use them in views
When to use set-based statements?
Update, insert, or delete multiple records of data from a table
When to use row-based statements?
Update, insert, or delete a single record from a table