Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1693 Lượt xem

I just found that in selection field key is store not the value why is that give me valid reasons 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Keys are compact and consistent across records (e.g., 'draft', 'done', 'cancelled'), which makes them easier to query and process in the backend.

Values (display text) can be longer, localized/translated into different languages, or dynamic, which would make database queries less efficient if stored directly.

The localization impact is significant, if someone in Spain marked a Sales Order as "Hecho" then it would cause problems for someone in the United States looking for Sales Orders marked as "Done".

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
1181
4
thg 12 24
30975
2
thg 12 17
17076
0
thg 4 15
4076
1
thg 3 15
9602