summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-10-25 13:23:01 +0100
committerGitHub <noreply@github.com>2017-10-25 13:23:01 +0100
commit5474cff0ebab8c42f1b0750ac054a8c762b43a37 (patch)
treeb3e470a621b88930cfafbf76d6d727162baee03a /store/store.go
parent16b845c0d77535ea306339f7a8bd22fc72f8a3c5 (diff)
downloadchat-5474cff0ebab8c42f1b0750ac054a8c762b43a37.tar.gz
chat-5474cff0ebab8c42f1b0750ac054a8c762b43a37.tar.bz2
chat-5474cff0ebab8c42f1b0750ac054a8c762b43a37.zip
PLT-7934: Make query for bulk elasticsearch indexing more efficient. (#7664)
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/store/store.go b/store/store.go
index 5674a05d5..eada8f395 100644
--- a/store/store.go
+++ b/store/store.go
@@ -182,8 +182,9 @@ type PostStore interface {
GetPostsCreatedAt(channelId string, time int64) StoreChannel
Overwrite(post *model.Post) StoreChannel
GetPostsByIds(postIds []string) StoreChannel
- GetPostsBatchForIndexing(startTime int64, limit int) StoreChannel
+ GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) StoreChannel
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
+ GetOldest() StoreChannel
}
type UserStore interface {