OSCHINA 社区最新专区文章 |
mysql亿级数据量的时候,大家帮忙看看这个sql如何优化呢? Posted: 06 Mar 2022 05:04 AM PST 假如相同的数据fieldA是相同的,比如交易记录有几条,fieldA就相当于订单号,订单号是相同的。现在想通过已知的fieldB和fieldC查询id为01的记录,查询到fieldA,然后再根据已知的fieldD字段查询id为00的记录。 这样写数据量大的情况下,查询很慢,如何优化呢? |
You are subscribed to email updates from OSCHINA 社区最新专区文章. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment