I'm creating (yet another) product feed database script and I'm looking for ideas help from the forum.
I've searched through various websites for the answer but can't find one anywhere.
Is it better to use a flatfile or a relational database?
Most of the articles I've read refer to various gurus of the 70's and the benefits of the relational database. But is this still relevant to today? I remember 'back in the day' running an employees database on an 8086 machine running at 8mhz and stored on a 360k floppy disc. Things have changed considerably since then, computer speeds have in increased by a factor of 500 and storage by a factor of hundreds of thousands. But the old '70s theories still prevail are they still relevant?
The main table I have designed is shown in the following mysql dump.
Code:
CREATE TABLE `products` (
`Merchant_ID` int(7) NOT NULL default '0',
`Product_ID` varchar(30) NOT NULL default '0',
`Name` varchar(100) NOT NULL default '',
`Brand` varchar(30) default NULL,
`Short_Description` varchar(255) NOT NULL default '',
`Long_Description` text,
`Product_URL` varchar(255) NOT NULL default '',
`Image_URL` varchar(255) NOT NULL default '',
`Thumbnail_URL` varchar(255) NOT NULL default '',
`RRP` decimal(8,2) NOT NULL default '0.00',
`Offer_Price` decimal(8,2) NOT NULL default '0.00',
`Promo_Text` text,
`Delivery` varchar(255) default NULL,
`Category_ID` int(6) NOT NULL default '0',
`Delete_Flag` tinyint(1) NOT NULL default '0',
`currency` char(3) NOT NULL default 'GBP',
PRIMARY KEY (`Product_ID`),
KEY `Name` (`Name`),
KEY `Category_ID` (`Category_ID`),
KEY `Merchant_ID` (`Merchant_ID`)
) ENGINE=MyISAM ;
(I also have separate category tables for various networks linked on the Category_ID and a merchant table).
If I wish to add industry specific data (eg holidays cellphone cds etc) would I
be better off adding the relevant fields to the main table or would it be better to have a separate table for each industry link on the Product_ID?
Any advice / help would be appreciated.
Regards
Bookmarks