From d20510168fb336eee0eadc924ab56e7ddcf0dcf0 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 1 Nov 2010 12:33:52 +0100 Subject: [PATCH] [IMP] Speed improvement when loading modules bzr revid: fp@tinyerp.com-20101101113352-g32hhvp5355jb3nt --- bin/osv/orm.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index f62244351b9..1dac64dc9a3 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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'):