I am creating a tool with which to edit web pages within a CMS. The main goal of the tool is total flexibility for the user. Therefore, a great number of properties can be edited in it - properties like these (snippet):
langbutton_menu_border_color_left
langbutton_menu_border_width_left
langbutton_menu_border_style_left
langbutton_menu_border_color_right
... you get the drift. To date, I have 238 such properties, mostly integers and short strings. I have now to create a mysql table for the data. I have some years of web development experience, and it was an absolute taboo to even consider putting 238 columns into a mySQL table. But on second thought, I'm starting to think, why not?
Tek bir veritabanı sütunları ile bağlanır hazır giriş elemanlarının bir koleksiyona sahiptir benim CMS olarak ben bu yeni aracı entegre ediyorum, şu anda benim için en uygun şeydir. Özellikleri (örneğin, böylece bir "sınır" özelliği bir alanda depolanan onları gruplama) saklamak herhangi başka bir şekilde ben çok önlemek istiyorum koleksiyonu büyük değişiklikler, gerektirecektir - Ben büyük bir projede duyuyorum ve tam anlamıyla gündüz çalışıyoruz ve gece.
I would create and alter the table based on a XML definition, so I could live with administering a 238 column table. Storage efficiency is not important - the expected number of pages will not exceed 50-100. I need to make no queries on the table except for loading a single page at a time using the primary key.
Yani, mySQL uzmanlar, bir şey seriously Bu tür 238 sütun veri depolama karşı konuşan var mı? Eğer beklediğiniz problemleri, üstel bellek kullanımı, böyle bir şey?
Genellikle, ben tam CSS dizeleri içine çeşitli özellikleri çevirmek ve ayrıştırmak ve bu dizeleri ile başa sınıfları kuracağına - ki büyük ölçüde sayısını azaltacaktır. Ama zaman kısıtları dikkate?