[IMP] Speed improvement when loading modules
bzr revid: fp@tinyerp.com-20101101113352-g32hhvp5355jb3nt
This commit is contained in:
parent
c50d3029ae
commit
d20510168f
|
@ -2494,13 +2494,6 @@ class orm(orm_template):
|
|||
self.__schema.debug("Create table '%s': relation between '%s' and '%s'",
|
||||
f._rel, self._table, ref)
|
||||
else:
|
||||
#cr.execute("SELECT c.relname,a.attname,a.attlen,a.atttypmod,a.attnotnull,a.atthasdef,t.typname,CASE WHEN a.attlen=-1 THEN a.atttypmod-4 ELSE a.attlen END as size " \
|
||||
# "FROM pg_class c,pg_attribute a,pg_type t " \
|
||||
# "WHERE c.relname=%s " \
|
||||
# "AND a.attname=%s " \
|
||||
# "AND c.oid=a.attrelid " \
|
||||
# "AND a.atttypid=t.oid", (self._table, k))
|
||||
#res = cr.dictfetchall()
|
||||
res = col_data.get(k, [])
|
||||
res = res and [res] or []
|
||||
if not res and hasattr(f, 'oldname'):
|
||||
|
|
Loading…
Reference in New Issue