summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/post_store.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-9770: rewrite getParentsPosts to improve performance (#8467)Jesse Hallam2018-03-161-23/+62
| | | | | | | | | | | | | | | | | | | | * 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.
* MM-9664 Add invalidation metrics for store caches (#8340)Joram Wilander2018-03-051-1/+11
| | | | | | | | * Add invalidation metrics for store caches * Increment session invalidation metric * Fix tests
* ABC-228 Update GetPosts caching to work for non-60 limits (#8233)Joram Wilander2018-02-091-5/+10
| | | | | | | | * Update GetPosts caching to work for non-60 limits * Only cache on limits of 30/60 and add test * Add comments clarifying 30 and 60 limits
* PLT-8483: Ignore join/leave team messages for unread counts (#8042)Jesús Espino2018-01-051-2/+4
|
* fix posts created at test (#7977)Chris2017-12-141-2/+2
|
* Fixing formating on SQL errors for get parent posts. (#7965)Christopher Speller2017-12-121-1/+1
|
* simplify things (#7735)Chris2017-10-301-1/+1
|
* Adding Posts table indexes for 20M rows. (#7728)Christopher Speller2017-10-271-0/+4
|
* PLT-7934: Make query for bulk elasticsearch indexing more efficient. (#7664)George Goldberg2017-10-251-14/+34
|
* store/sqlstore cleanup and postgres tests (#7595)Chris2017-10-091-13/+5
| | | | | | | | | | * sqlstore cleanup / postgres tests * remove stopped containers * cmd/platform compile fix * remove test-postgres target from makefile
* fix GetPostsByIds error (#7591)Chris2017-10-061-1/+1
|
* reduce store boiler plate (#7585)Chris2017-10-061-326/+54
|
* Parameterized post ids to avoid possible sql injection (#7575)Jonathan2017-10-041-3/+14
|
* Move sql store code into store/sqlstore package (#7502)Chris2017-09-251-0/+1393
* move sql store code into store/sqlstore package * move non-sql constants back up to store * fix api test * derp