sql - inner join causes a lot of IPC:MessageQueueSend wait events compared to left join - Stack Overflow

I have an RDS cluster consisting of One read replica and one Primary.recently I have made a change in

I have an RDS cluster consisting of One read replica and one Primary.

recently I have made a change in my code such that a join that used to be a "left_join" would now be an "inner_join" this caused a degradation in performance and queries that used to run fine with "left_join" are now taking much longer to finish.

I started to see a spike in IPC:MessageQueueSend wait events in the AWS console.

Additional information that might be helpful:

  1. there are multiple indexes on that table if that helps and I am using them as part of the join
  2. I am running a create table as select query (this is part of a dbt transformation)
  3. I have a compound primary key

Why would this change cause that big of a difference ?

there are multiple CTEs that are being used in this query and they are not materialized and this might be the reason it does not show row estimate

edit with detailed explain analyze explain (analyze, verbose, buffers, format text)

inner join :

left join:

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744800287a4594449.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信