Results 1 to 3 of 3

Thread: Help me to optimize my database

  1. #1
    Registered pierrebenoit's Avatar
    Join Date
    Jul 2004
    Posts
    56

    Help me to optimize my database

    Hi all,

    I am going to build many datafeed website and want some help about the database.
    This is the structure to create a table:

    CREATE TABLE products (
    id int(11) NOT NULL auto_increment,
    ProductID int(10) default NULL,
    Name varchar(200) default NULL,
    MerchantID varchar(150) default NULL,
    Merchant varchar(150) default NULL,
    Link varchar(250) default NULL,
    Thumbnail varchar(250) default NULL,
    BigImage varchar(250) default NULL,
    Price int(5) default NULL,
    RetailPrice int(5) default NULL,
    Category varchar(150) default NULL,
    SubCategory varchar(150) default NULL,
    Description text,
    Custom1 varchar(150) default NULL,
    Custom2 varchar(150) default NULL,
    Custom3 varchar(150) default NULL,
    Custom4 varchar(150) default NULL,
    Custom5 varchar(150) default NULL,
    LastUpdated varchar(150) default NULL,
    PRIMARY KEY (id)
    ) TYPE=MyISAM;

    ** Can I optimize the sql code below so the information can take less place?

    I have a choice:
    1- One database per website with a products table
    2- One database for many website (around 100) with 1 product table per website.

    What is the way to go?

    Thanks!
    Affiliate Websites: 1 |2|3|

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    I use 1 products table and add a mid (merchant id)
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    Registered Alien
    Join Date
    Aug 2004
    Location
    .au/.sg
    Posts
    58
    I use 1 database/products table per website.

Similar Threads

  1. Posting Comments on Entries in a Database?
    By writergal in forum Website Programming & Databases
    Replies: 2
    Last Post: 09-07-2004, 02:33 PM
  2. Outdoor Education Database
    By Kyle in forum User Owned Websites
    Replies: 22
    Last Post: 08-23-2004, 01:46 AM
  3. Non-CPanel Database
    By iKwak in forum Web Hosting & Servers
    Replies: 1
    Last Post: 02-16-2004, 02:12 PM
  4. Database Driven Websites
    By star in forum Website Programming & Databases
    Replies: 6
    Last Post: 10-21-2003, 03:51 PM
  5. database for articles
    By The Literary Thug in forum Website Programming & Databases
    Replies: 2
    Last Post: 07-28-2003, 01:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •