The queries made by the method `_is_an_ordinary_table` represent about 8% of the time to do a full Odoo installation. Use a cached query for all tables on the registry to reduce that time to some negligible amount. closes odoo/odoo#39262 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>