Improve performance when filtering large number of posts. issue#38