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:
Version f1 status (1997)
Text variables do not show (1999)
[format] problems (2000)
New command suggestion (1997)
Sendmail Woes (2002)
[WebDNA] WebDNA glitch, no response required ... (2009)
UPPERCASE (1997)
WC2b15 File Corruption (1997)
Images (2000)
Moment of Thanks (1997)
[SHOWIF] (1997)
Ampersand Character (&) (1997)
[OT] Hacked IIS/FTP (2002)
Limiting user access to .tmpl files (1997)
Error Lob.db records error message not name (1997)
RE: problem with applets embedded in tpl files (1997)
TCPConnect / TCPSend to Solaris NN Enterprise (2002)
PCS Frames (1997)
Separate SSL Server (1997)
[OT] CSS and SSI books (2004)