Django Table with Million of rows

前端 未结 6 1211
迷失自我
迷失自我 2021-02-06 04:20

I have a project with 2 applications ( books and reader ).

Books application has a table with 4 milions of rows with this fields:

 book_title = models.Ch         


        
6条回答
  •  半阙折子戏
    2021-02-06 05:10

    I'm not familiar with Django, but I have a general understanding of DB.

    When you have large databases, it's pretty normal to index your database. That way, retrieving data, should be pretty quick.

    When it comes to associate a book with a reader, you should create another table, that links reader to books.

    It's not a bad idea to divide the books into subjects. But I'm not sure what you mean by having 20 applications.

提交回复
热议问题