Symfony
让我了解了YAML的力量。过去,我默认使用 MySQL 为电子商务网站制作表格supported_countries
,units_of_measure
或者sku_conditions
. 但现在,我可能更喜欢使用YAML
来创建config/countries.yml
,config/units.yml
或config/skuConditions.yml
. 所以我很好奇——在这种情况下,在决定解析和分析 YAML 文件时是否需要考虑重要的性能因素 ~ 与 ~ 查询和分析 SQL 数据?
国家.yml
US:
code: US
name: United States
CA:
code: CA
name: Canada
skuConditions.yml
default-unit: new
units
new:
short: new
long: brand spanking new
description: never been used.
open-box:
short: open
long: pretty much new
description: the box has been opened but never used.