Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 Django 管理员是否可以处理大量记录。
假设我有 200 万用户,例如如何处理分页?它会因为每次所有记录都被计算以提供给偏移量而变得非常缓慢吗?
注意:我打算使用 PostgreSQL。
谢谢。
计数很快,对象的管理分页限制为每页 100 条记录。虽然对 200 万条记录进行排序可能需要一些时间,但是对于 200 万用户,您可以负担得起一些 ram 来在这些字段上放置一些索引;)
说真的:只要您的数据库可以处理它,这根本没有问题。