Re: Db design question (relational vs. flat?)
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17070
interpreted = N
texte = >What if I stuff all the category names into the category field in my>catalog.txt instead of creating another db like category.db? Can you>help me understand pros and cons of one vs. the other?The downside of that is you can't easily create a popup or list or anyother construct that would require breaking out every word as an individualitem (that's why our admin pages can't display a list of Groups). Theupside is that it's faster for searching, and in many ways easier tocomprehend (and edit) because the words are just sitting there in a singlefield.There's nothing stopping you from doing both - create a category databasewhose purpose is to ease popup/list creation, but also have lists of wordsin a big field. The only problem would be someday getting the two out ofsynch, but I don't really know what your application is, so I don't know ifthat's a huge problem.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>What if I stuff all the category names into the category field in my>catalog.txt instead of creating another db like category.db? Can you>help me understand pros and cons of one vs. the other?The downside of that is you can't easily create a popup or list or anyother construct that would require breaking out every word as an individualitem (that's why our admin pages can't display a list of Groups). Theupside is that it's faster for searching, and in many ways easier tocomprehend (and edit) because the words are just sitting there in a singlefield.There's nothing stopping you from doing both - create a category databasewhose purpose is to ease popup/list creation, but also have lists of wordsin a big field. The only problem would be someday getting the two out ofsynch, but I don't really know what your application is, so I don't know ifthat's a huge problem.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
5.0 Pricing (2003)
Menu to select product variations (1997)
RE: Subtotal help (1997)
Pithy questions on webcommerce & siteedit (1997)
Echo (2004)
Again: tcpconnect problem with authorize.net (2003)
[WebDNA] Crashing Database (2011)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Multiple prices (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Creating PDF (2004)
Mimeheaders parameters, which exist? (2003)
wild question (1998)
Longer .extensions with Windows? (1998)
Adding non-SKUs to cart (1998)
Re:quit command on NT (1997)
form data submission gets truncated (1997)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
search vs lookup (1998)
[WebDNA] Poll: Discussion Forum (2009)