PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Better table type for disk usage?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Better table type for disk usage?

Réponse
 
LinkBack Outils de la discussion
Vieux 16/10/2007, 21h32   #1
laredotornado@zipmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Better table type for disk usage?

Hi,

Currently at my hosting company, we are using MySQL 5.0. All our
tables are of InnoDB type. I chose this at one time b/c it supported
use of foreign key constraints. My hosting company now tells me
InnoDB tables are not optimized for disk usage reporting in real
time. My questions are:

1. Is there another table type I can use that supports foreign key
constraints that is better for disk usage reporting?

2. Is there another table type I can use that supports foreign key
constraints and uses less disk space?

3. How can I change the type of a table without losing the data?

Thanks, - Dave

  Réponse avec citation
Vieux 16/10/2007, 21h56   #2
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Better table type for disk usage?

On Tue, 16 Oct 2007 21:32:08 +0200, laredotornado@zipmail.com
<laredotornado@zipmail.com> wrote:
> Currently at my hosting company, we are using MySQL 5.0. All our
> tables are of InnoDB type. I chose this at one time b/c it supported
> use of foreign key constraints. My hosting company now tells me
> InnoDB tables are not optimized for disk usage reporting in real
> time.


And you told them it is not your job to report disk usage to them, or do
you have a job there instead of being a client? If they are really
complaining, just switch. It should not be a big deal. Why the hell would
the need 'real-time' disk usage by the way? An average to control wether
you're not using more then you pay for, and a server not overclogged with
clients all to the max should be all they need.

> 1. Is there another table type I can use that supports foreign key
> constraints that is better for disk usage reporting?
>
> 2. Is there another table type I can use that supports foreign key
> constraints and uses less disk space?


Sorry, don't know the answer to those 2, never needed to jump through
hoops for that...

> 3. How can I change the type of a table without losing the data?


ALTER TABLE tablename ENGINE = enginename;

What repercussions this has for your relations etc. would depend on what
engine to what engine.

Moral of the story: disk space is dirt cheap. Cases where the hours you
spent on tracking use and minimizing it are more costeffective then just
to buy more/bigger ones are rare, very rare.
--
Rik Wasmus
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08922 seconds with 10 queries