Skip to main content
May 14, 2024
Solved

Need to remove unused fields from Record type.

  • May 14, 2024
  • 7 replies
  • 0 views

Can anyone help me on this : -

You need to remove an unused field from an existing record type Product, which has data sync enabled and is backed by a database table. What should you do?
A. Delete the field from the record type and optionally delete the column from the database table.
B. Delete the field from the product Custom Data Type (CDT) and perform a full resync of the record type.
C. Delete the column from the database table and perform a full resync of the record type. 
Best answer by shubhama926776

Hello [mention:05ec0292a76349c3b810baa88e2b75f7:e9ed411860ed4f2ba0265705b8793d05] 

The correct option is A. Delete the field from the record type and optionally delete the column from the database table.
To remove an unused field from a data-synced record type, delete the field directly from the record type. Optionally, you can also delete the corresponding column from the database table for better database hygiene.

7 replies

karumurua531442
May 14, 2024

hi,[mention:05ec0292a76349c3b810baa88e2b75f7:e9ed411860ed4f2ba0265705b8793d05]  Unused fields in a database don't directly cause performance issues since you wouldn't be writing or reading from that field we might have to think regarding efficiency in the long run. May vote for option C. That both the record type and the database schema remain synchronized. This approach eliminates the unused field from the record type and also in the database table and also has consistency in both the record and db.

shubhama926776
Brainy
May 14, 2024

Hello [mention:05ec0292a76349c3b810baa88e2b75f7:e9ed411860ed4f2ba0265705b8793d05] 

The correct option is A. Delete the field from the record type and optionally delete the column from the database table.
To remove an unused field from a data-synced record type, delete the field directly from the record type. Optionally, you can also delete the corresponding column from the database table for better database hygiene.

शुभम्
rajt0005
June 12, 2024

still confused for this question anyone can answer this ???

stewart.burchell
June 12, 2024

What is confusing you here? You could take two approaches to answering the question:

  1. using your knowledge of records and databases determine which is the correct answer
  2. using your knowledge of records/CDTs eliminate the answers that are incorrect to find the correct answer

Using a combination of 1. and 2. should lead you to the correct answer.

If you don't know why the answer is A. at all then ask specific questions here and folk can try and help you understand.

rajt0005
June 12, 2024

thanks [mention:7628077af4b9463e9533a897fad2351f:e9ed411860ed4f2ba0265705b8793d05] I was just confused between option A and B I just wanted to know the best practice I can implement