Re: joins vs excess fields

2002-04-22 Thread olinux
Hmm, That's what I thought I was doing by putting the common fields of each article type in a single table. I do need to rethink the search functions. Was thinking of a fulltext index on title and article_content fields. basic table is id | type | author | date | last_update | title | keywords

Re: joins vs excess fields

2002-04-22 Thread Rodney Broom
A quick note, I've read Tom's email about using a hanger table and simply don't agree. From: olinux <[EMAIL PROTECTED]> > I have a table with a large number of news articles. For my curiosity, how many article records is "a large number"? A few thousand, or tens of millions? > The question

Re: joins vs excess fields

2002-04-22 Thread Tod Harter
I disagree. Joins can be expensive. Now PERHAPS Tom's suggestion is a good one, but its hard to say. Remember, excess fields can always be left out of a SELECT, so they don't neccessarily cause a performance problem. Some things are true though, fixed length records are more efficient, so if yo

Re: joins vs excess fields

2002-04-21 Thread Toomas Vendelin
Hello olinux, If I were in your shoes, I would put not only paths to images into a separate table, but also a field called "content" and probably title, summary, author and linked all this stuff together via ID-like fields which are primary keys in those new tables. Then articles table can be sea

joins vs excess fields

2002-04-21 Thread olinux
Hello, I have a table with a large number of news articles. Articles of type 'feature' (identified in the article_type field) will have the path to an image associated with the article stored. The question is whether to 1) add a field to the database that most records will not use OR 2) add a ta