posts is an important table in SpringBlog and from PostRepository we can find that we always read posts by permalink and post_type.In our test, adding index on posts.permalink and posts.post_type can really improve related querys' performance up to 85%.Therefore, the performance impact for write operations is acceptable under common cases.
Problem
posts is an important table in SpringBlog and from PostRepository we can find that we always read posts by permalink and post_type.In our test, adding index on posts.permalink and posts.post_type can really improve related querys' performance up to 85%.Therefore, the performance impact for write operations is acceptable under common cases.
Possible Soultion
Add Index on posts.post_type and posts.permalink