Query performance: single column and multiple columns

Which table structure is best among below 2?

enter image description here

OR

enter image description here

In the first query, I use the operator LIKEin the query. In the second, I use the operator AND.

Does the first table design have any advantages over the second when selecting data? In what situation do I need to decide between the first table structure and the second?

+4
source share
2 answers

The first would be better if you never had to work with attributes Typeor Currency, and you always used all the text saved as MEASUREMENT_NAME.

Type Currency , , , .., .

, MEASUREMENT_NAME, Type Currency . , MEASUREMENT_NAME , . MEASUREMENT_NAME .

, MEASUREMENT_NAME , , , , () , JSON XML, Oracle JSON.

Type Currency, .

+1

, , . , , , , . , / , .

+1

Source: https://habr.com/ru/post/1679224/


All Articles