Table design considerations Flashcards

1
Q

does SF stores date/timestamp efficiently than varchar?

A

yes always…so choose date/timestamp as possible.

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

What constraints are present in SF when creating a ta ble?

A

Not null constraint for sure.
Other referential integrity constraints like Primary index/secondary index are informational only. For data models and for BI tools and easy understanding of relationship between tables.

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

Does your query performance change with column length?

A

No. However, keep it as much as possible to detect any data load issues…

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

Can you convert permanent table to transient table and vice versa?

A

No not possible. You can do copy/clone and copy grants etc.

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

A cloned object does not retain any granted privileges on the source object itself (i.e. clones do not automatically have the same privileges as their sources). A system administrator or the owner of the cloned object must explicitly grant any required privileges to the newly-created clone. True?

How does child objects behave when the object to be cloned is a database or schema.

A

Yes but there is a catch. Granted permissions in source object like tables/M views doesn’t come automatically in cloned object. It has to be explicitly granted by the clone by the admin.

But lets say if the source object is a database or schema, then clone of a new child object will reflect the same previleges like other child object within the clone.

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

can individual external named stages can be cloned?

A

yes - their referenced cloud storage will have no impact.

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

can internal named stage can be cloned?

A

No - internal SF stage cannot be cloned.

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

how table storage information can be seen?

A

If you’re admin, you can do Account->Usgae-> Storage tab

Otherwise you can look at TABLE STORAGE METRICS in information schema and account usage schema

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

What byte columns available in table storage?

A

ACTIVE_BYTES
TIME_TRAVEL_BYTES
FAILSAFE_BYTES

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

Does files in internal stage cost you?

A

Yes it will cost storage cost - so you can remove them once copied to table. They do not cost additionally for fail safe or time travel.

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