假设我有 3 张桌子:
reviews | paid, received_feedback (booleans)
payments | review_id
feedback | review_id
是否值得执行性能提升(psuedo-SQL 来演示):
select from reviews where paid = 1
VS
select from reviews, joins payments where payments.review_id = reviews.id
假设我有 3 张桌子:
reviews | paid, received_feedback (booleans)
payments | review_id
feedback | review_id
是否值得执行性能提升(psuedo-SQL 来演示):
select from reviews where paid = 1
VS
select from reviews, joins payments where payments.review_id = reviews.id