How to limit top N of each group in Django ORM by using Postgres Window functions or Lateral Joins?

前端 未结 0 1708
别那么骄傲
别那么骄傲 2021-02-12 23:59

I have following Post, Category & PostScore Model.

class Post(models.Model):
    category = models.ForeignKey(\'Categor         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题