![]() Topic awaiting preservation: mySQL - when two tables are better than one.. (Page 1 of 1)  | 
  |
|---|---|
| 
       Bipolar (III) Inmate From: Australia  | 
    
       
  posted 05-26-2005 01:19
      
      Does anyone know alot about databases, particularly mySQL?  | 
  
| 
       Maniac (V) Inmate From: Sthlm, Sweden  | 
    
       
  posted 05-26-2005 09:51
      
      Performancewise you can have several hundred million rows in a table as long as you use indexes correctly for your conditions and don't run queries that creates fulltable scans.  | 
  
| 
       Bipolar (III) Inmate From: Australia  | 
    
       
  posted 05-26-2005 09:57
      
      quote: 
  | 
  
| 
       Maniac (V) Mad Scientist From: Rochester, New York, USA  | 
    
       
  posted 05-26-2005 14:06
      
      Ideologically you should normalize all of your data. At least down to second normal form. Try a search on database normalization.  | 
  
| 
       Bipolar (III) Inmate From: Australia  | 
    
       
  posted 05-26-2005 14:24
      
      Yeh thats interesting, i guess i have done that with other databases.  This one is a bit different really, each record will also log the date/time of the record and every column will pretty much contain a unique entry from the client - thereis maybe one or two things i could put in another table but to no real advantage.  | 
  
| 
       Paranoid (IV) Mad Scientist with Finglongers From: Germany  | 
    
       
  posted 05-26-2005 15:18
      
      the second normal form can increase your performance - if you have to shuffle *a lot* of bytes, returning just an id, instead of a country name will shave of transfer time.  | 
  
| 
       Bipolar (III) Inmate From: Australia  | 
    
       
  posted 05-27-2005 01:41
      
      So instead of storing country name i would store an ID for the country which matches up to another table which has the country name?  | 
  
| 
       Paranoid (IV) Mad Scientist with Finglongers From: Germany  | 
    
       
  posted 05-27-2005 09:02
      
      Look at what data you have to actual transfer from the hard disk:  | 
  
| 
       Bipolar (III) Inmate From: Australia  | 
    
       
  posted 05-27-2005 09:31
      
      Thanks TB i see what you mean. I guess i could load all of the countries into an array or something for the replacement and do it that way, so they are loaded once and thats that.  | 
  
| 
       Paranoid (IV) Inmate From: Minneapolis  | 
    
       
  posted 06-01-2005 00:06
      
      I started writing a response to this over the weekend, but then I got sidetracked.  I just wanted to address a few things you mentioned H][RO: quote: 
 quote: 
 quote: 
 quote: 
  |