summaryrefslogtreecommitdiffstats
path: root/app/import_test.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-03-16 11:10:14 -0400
committerChristopher Speller <crspeller@gmail.com>2018-03-16 08:10:14 -0700
commit4b675b347b5241def7807fab5e01ce9b98531815 (patch)
tree8cc592a157200b458f36b973fe303e739c995f5a /app/import_test.go
parenta41a9500bc8cee75740db81017982fdae5d14d77 (diff)
downloadchat-4b675b347b5241def7807fab5e01ce9b98531815.tar.gz
chat-4b675b347b5241def7807fab5e01ce9b98531815.tar.bz2
chat-4b675b347b5241def7807fab5e01ce9b98531815.zip
MM-9770: rewrite getParentsPosts to improve performance (#8467)
* rename variables in testPostStoreGetPostsWithDetails This helps to clarify the structure of the posts under test. * clarify and expand existing testPostStoreGetPostsWithDetails assertions * expand testPostStoreGetPostsWithDetails assertions This verifies that replies to posts in the window, themselves not in the window (because of a non-zero offset) are still fetched. They were previously missing. * MM-9770: rewrite getParentsPosts to improve performance See discussion on ~developers-performance, but the basic idea here is to force the database to use the `PRIMARY` index when fetching posts instead of trying to filter down by channel and doing a scan.
Diffstat (limited to 'app/import_test.go')
0 files changed, 0 insertions, 0 deletions