[pyar] Conectividad a Base de Datos
Will Santana
wisahe en gmail.com
Mie Jun 8 03:18:03 ART 2011
El 06/06/2011 03:51 p.m., Juan Manuel Santos escribió:
> Si lo que tenés que hacer es simple (no tenés joins muy rebuscados por
> ejemplo), antes que Elixir te recomendaría SQLObject, es muy intuitivo.
>
> Saludos
> Juan Manuel
Lo revisé e hice el tutorial... Me encantó, sólo que tiene sus [1]detalles:
***Extracto sacado de la web.
A note on SQLObject limitations
SQLObject wants you to think in object-oriented terms instead of
relational terms. This is good for your comprehension and your
programming productivity, but it's not so good for performance. After
all, the database is still relational. How do you mark every phone
number in the database as having been called? With SQL, you would use a
single UPDATE command. With SQLObject, you need to iterate over the
entire result set and modify the last_call member of each object, which
is much less efficient.
SQLObject sacrifices processor time for developer time. This is usually
a good deal, but even in simple applications, you may need to drop down
a level to the Python database interface and write raw SQL for some
critical-path operations.
[1]
http://www.ibm.com/developerworks/opensource/library/os-pythonsqlo/#N10393
More information about the pyar
mailing list