Created index on tables customer and order as in sql.
Select w_tax form warehouse implemented.