阅读背景:

优化使用相同表上的多个左连接的查询

来源:互联网 

I've come across a query that is taking "too long". The query has 50+ left joins between 10 or so tables. To give a brief overview of the database model, the tables joined are tables that store data for a particular data type (ex: date_fields, integer_fields, text_fields, etc.) and each has a column for the value, a "datafield" id, and a ticket id. The query is built programmatically based on an association table between a "ticket" and its "data fields".I've come across a query that is taking "too lo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: