Temporary and Transient Tables Flashcards
(10 cards)
Is temporary tables available to other users?
Nope…it is only for that user and for that session.
Can temporary tables be retrieved?
No, not by user or even by SF after that session.
Not recoverable.
Can temporary and non temporary table share same name?
Yes. Temporary table created in the session takes the precedence…and all DML operations are done on that table. Similarly even between temporary tables you can keep same names, then the newly created one will take precedence.
Can you change temporary tables to other table types using ALTER command?
Nope…you have drop/create/replace only. You can clone to Transient type though.
What are transient tables?
These tables are like temporary tables but they will stay even out of session unless it is dropped explicitly.
They are similar to permanent tables except they do not have fail safe.
What is the key difference between transient and permanent table?
No fail safe in transient table.
Time travel can only be 0 or 1 days… (not 90 days like permanent tables in enterprise edition).
What kind of cloning exists in terms of changing table types?
Temporary tables can be cloned to Transient and vice versa. None of them can be cloned to Permanent.
Permanent can be clone to temporary and transient.
Can temporary/transient tables be cloned to permanent tables?
No but vice versa is possible.
Can time travel retention period set to 0 for permanent tables?
Yes it can be set any time. It will go to fail safe mode when table is dropped.
Can temporary tables have time travel?
Yes up to 1 day within that session.