Article View: es.comp.os.linux.programacion
Article #17191Re: Rendimiento en Bases de datos
From: Manuel López Moreno
Date: Tue, 08 Feb 2000 00:00
Date: Tue, 08 Feb 2000 00:00
97 lines
3842 bytes
3842 bytes
Tal d�a Tue, 08 Feb 2000 16:37:00 GMT,
Toni M�rtir <techni-web@nospampala.com> nos relat�:
>> Comienza el juego...
>
>No conozco mysql pero esto es impresionante:
>
>> mysql> select count(*) from archivos;
>> +----------+
>> | count(*) |
>> +----------+
>> | 382219 |
>> +----------+
>> 1 row in set (0.06 sec)
>>
El qu� es impresionante, �el n�mero de registros o la velocidad con la que
los cuenta?
Escrib� la orden 'select count(*)' s�lo para decir: "tenemos una tabla con
N registros".
Y si el motor tarda 0.06 segundos, es tan s�lo porque NO los cuenta
secuencialmente (por favor !!!), sino que lo "calcula" accediendo a un dato
fijo, en alg�n lugar de la base de datos.
Si lo "�impresionante?" no era el tiempo para esta "query", sino para la que
remit�a a continuaci�n; la "query" de verdad.
>
>- Soporta transacciones?
NO. Pero...
[/usr/doc/MySQL-3.23.8-alpha/manual_toc.html]
5.4.3 Transactions
Transactions are not supported. MySQL shortly will support atomic
operations, which are like transactions without rollback. With atomic
operations, you can execute a group of INSERT/SELECT/whatever commands
and be guaranteed that no other thread will interfere. In this
context, you won't usually need rollback. Currently, you can prevent
interference from other threads by using the LOCK TABLES and UNLOCK
TABLES commands. See section 7.24 LOCK TABLES/UNLOCK TABLES syntax.
> Stored Procedures? Triggers?
S� y No.
[/usr/doc/MySQL-3.23.8-alpha/manual_toc.html]
5.4.4 Stored procedures and triggers
[...]
The planned update language will be able to handle stored procedures,
but without triggers. Triggers usually slow down everything, even
queries for which they are not needed.
To see when MySQL might get stored procedures, see section F List of
things we want to add to MySQL in the future (The TODO).
> Referential Integrity?
S�, pero no es funcional. Es decir, No.
[/usr/doc/MySQL-3.23.8-alpha/manual_toc.html]
The FOREIGN KEY syntax in MySQL exists only for compatibility with
other SQL vendors' CREATE TABLE commands; it doesn't do anything. The
FOREIGN KEY syntax without ON DELETE ... is mostly used for
documentation purposes.
[...]
5.4.5.1 Reasons NOT to use foreign keys
There are so many problems with FOREIGN KEYs that we don't know where
to start:
[... m�s o menos dice que dificulta la implementaci�n
y decrementa la velocidad en los INSERT/UPDATE ...]
The only nice aspect of FOREIGN KEY is that it gives ODBC and some
other client programs the ability to see how a table is connected and
to use this to show connection diagrams and to help in building
applicatons.
>O se trata solo de un juego.
Un juego... �por qu�?
Saludos.
P.D. Para m�s info: http://www.mysql.com
Technical Details
Message-ID:
<slrn8a0qr7.ol.luname@mantium.luname.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<87u2js56x8.fsf@bree.net> <slrn89gkr6.8dl.luname@mantium.luname.net> <MCXn4.2219$3U5.23442@m2newsread.uni2.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,da451d30a258bda5 X-Google-Attributes: gidf86c8,public From: luname@linuxfan.com (Manuel López Moreno) Subject: Re: Rendimiento en Bases de datos Date: 2000/02/08 Message-ID: <slrn8a0qr7.ol.luname@mantium.luname.net> X-Deja-AN: 583339221 Content-Transfer-Encoding: 8bit References: <87u2js56x8.fsf@bree.net> <slrn89gkr6.8dl.luname@mantium.luname.net> <MCXn4.2219$3U5.23442@m2newsread.uni2.es> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@uni2.es X-Trace: m2newsread.uni2.es 950039606 62.36.169.68 (Tue, 08 Feb 2000 20:53:26 MET) Organization: Wanadoo WebNews - Visita http://www.wanadoo.es Mime-Version: 1.0 User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: Tue, 08 Feb 2000 20:53:26 MET Newsgroups: es.comp.os.linux.programacion