this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create an index on active users to make paging through them more effi… (#379)

…cient

Recreating this cause traces show the list users query _does_ take
>200ms in a lot of cases for some reason.

authored by

Jaz and committed by
GitHub
4bbcf541 56e82da2

+1 -1
+1 -1
bgs/bgs.go
··· 442 442 } 443 443 444 444 type User struct { 445 - ID models.Uid `gorm:"primarykey"` 445 + ID models.Uid `gorm:"primarykey;index:idx_user_id_active,where:taken_down = false AND tombstoned = false"` 446 446 CreatedAt time.Time 447 447 UpdatedAt time.Time 448 448 DeletedAt gorm.DeletedAt `gorm:"index"`