Improve DB performance with caching

This commit is contained in:
2022-09-05 07:20:30 +01:00
parent a198f2a487
commit cd5eb61455
4 changed files with 272 additions and 4 deletions

View File

@@ -58,8 +58,8 @@ schema = {
"filename": "text",
# Confederate
"flag_name": "string indexed attribute",
#"guild": "text", # LEGACY -> channel
#"guild_id": "string indexed attribute", # LEGACY -> channel_id
# "guild": "text", # LEGACY -> channel
# "guild_id": "string indexed attribute", # LEGACY -> channel_id
# 36180
"guild_member_count": "int", # ? -> channel_member_count
# 9f7b2e6a0e9b
@@ -112,7 +112,7 @@ schema = {
"tag": "string indexed attribute",
# 100
"tail_size": "int",
#"time": "timestamp", # LEGACY -> ts
# "time": "timestamp", # LEGACY -> ts
"tokens": "text", # ???
# 2022-09-02T16:10:36
"ts": "timestamp",
@@ -124,7 +124,7 @@ schema = {
"unix_time": "string indexed attribute",
# Anonymous
"user": "text",
#"user_id": "string indexed attribute", # LEGACY -> nick_id
# "user_id": "string indexed attribute", # LEGACY -> nick_id
# 1, 2
"version_sentiment": "int",
# 1, 2