Re: [OT] mysql ¿es bueno?

From: Date: Thu, 04 Oct 2001 14:21:49 +0000
Subject: Re: [OT] mysql ¿es bueno?
References: 1 2 3  Groups: php.general.es 
Request: Send a blank email to general-es+get-14507@lists.php.net to get a copy of this message
> - ¿Qué volumen de datos es capaz de manejar? Hola, te hago un copypaste de "The MySQL FAQ" (http://www.bitbybit.dk/mysqlfaq/faq.html) con algunos datos curiosos al respecto: The maximum table size is limited by the MySQL version, the OS and in particular the filesystem. In most cases, this effectively comes out to: "The size of your hard drive." Many Linux systems impose a 2GB limit on files. MySQL v. 3.23 in particular, can be compiled to enable large tables which are only limited by the filesystem (unless, of course, your drive is larger than 800 million terabytes.) What is the maximum length of a query? Internally, the MySQL server can handle constant strings in WHERE clauses up to the full size of TEXT and BLOB fields (1,048,540 characters). The whole query can be up to 1,048,565 characters long, leaving just enough room to issue a simple statement using all of the width of the TEXT/BLOB. However: The size of the query string is limited by the variable max_allowed_packet (use the show variables command to see it). The size of this variable is usually considerably smaller than the above number. You can have some 85,000 elements in the WHERE clause, and nest parantheseses more than 1,200 levels deep. What is the maximum number of users? The maximum number of simultaneous connections your database can handle is limited by the variable max_connections (use the show variables command to see it). Note that you cannot set this value indiscriminately: Your OS too enforces some limits on the number of network connections and/or threads that can be active at any one time. What is the maximum number of databases and tables? The only limit on the number of databases and tables is how many files you may be able to store in a directory. When you create a database, MYSQL creates a directory in which to store the tables. Thus, the number of databases is limited by the number of subdirectories the OS can handle for the MySQL data directory. Each table in a database consists of 3 files. Therefore, the maximum number of tables you may define is limited by the number of files your operating system allows in a single directory, divided by 3. That said, some common sense is in order when you plan your database layout: Making the OS search through thousands of directory entries whenever a query is performed, is a bad idea. What is the maximum number of columns in a table? If you really need to know the answer to this question, it's about time you reconsider your database schema. You should have a really good reason to create tables with more than 30 or so columns. The answer is: at least 2000 columns What is the maximum amount of data I can store in a row? As for the previous question: If you really need to know this, you should reconsider your database/table layot. The collected size of all columns containing simple datatypes (numbers, CHAR/VARCHAR, ENUM, etc.), is limited to about 65,000 bytes. The size of TEXTs and BLOBs only count toward this limit with 1-4 bytes per column. What is the maximum number of indexes for a table? You can have 16 indexes in a table (32 in a MyISAM table) What is the maximum number of fields in an index? You can specify up to 16 field names in an index. The maximum length of the index (the length of all index values combined) is 250 bytes (500 for MyISAM tables; however, no single part may be greater than 255 bytes). What is the maximum size of a table, index or field name? 64 characters. Aliases can have a length upwards of 500 characters. Alberto Moreno http://drunkbit.cjb.net http://www.necronomicons.com ______________________________________________________________________________ mensaje enviado desde http://www.iespana.es emails (pop)-paginas web (espacio illimitado)-agenda-favoris (bookmarks)-foros

« previous php.general.es (#14507) next »