discourse/db
Sam 37088c4221 PERF: index on topic_id for user_histories table
We query this table when getting composer messages with the queries
such as:

```
SELECT  1 AS one FROM "user_histories"
WHERE "user_histories"."target_user_id" = 1 AND
 "user_histories"."action" = 9 AND
 "user_histories"."topic_id" = 105794
LIMIT 1
```

This index ensures this query remains very quick, regardless of user
history size.
2019-01-06 15:14:41 +11:00
..
fixtures FEATURE: Terms of Service v1.0.0 2018-11-21 00:45:16 +01:00
migrate PERF: index on topic_id for user_histories table 2019-01-06 15:14:41 +11:00
post_migrate Fix restores failing due to missing migration file. 2018-11-16 11:49:24 +08:00
api_test_seeds.rb Updates api_test_seeds for multiple auth_token support (#5414) 2017-12-09 08:56:11 +11:00