Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I prefer the first choice of storing the information in the database for the following reasons:</p> <ul> <li>It's better for me to keep all data in the database</li> <li>most of the time the customer will ask to make it changeable, actually they would ask for some screen to allow them to change ( add, remove, update ) these information</li> <li>It's an easy mission to load most ( if not all ) this information in the cache on the system startup, and hence I don't need to make a call to the database to load all the data</li> </ul> <p>And for how to store in the Database I would prefer the foreign column technique, and I won't use a second column to store the value for two reason</p> <ul> <li>First, most of the time I will load the <code>Other</code> table in the cache, so I don't worry about database performance issue</li> <li>For the scenario where the customer want to update the <code>Other</code> table values, I don't have to pass on all tables that stores the values and change it.</li> </ul> <p>For some situation I won't mind using <code>String</code> primary key for the <code>Other</code> table, and hence I would store the value directly and keep the <code>Other</code> table for description and any related information. since for most cases the size of the table would be very small compared to core tables in the system (employee, users, carts, products, ... etc). However I should guarantee that the string values would be very rarely updated (countries table for example).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload