Can you really increase the size of Django ... considering that you can only use one database? (In models.py and settings.py)

Django allows you to use only one database in settings.py. Does this stop you from expanding? (millions of users)

+5
source share
6 answers
+11
source

The database is not your bottleneck.

Check your browser carefully.

For each HTML page you send (on average) 8 other files, some of which can be quite large. These are your JS, CSS, graphics, etc.

, s... l... o... w... l... y...

, .

  • , , wackamole. http://www.backhand.org/wackamole/

  • -, squid, "" . . 7/8 . .

  • mod_wsgi/Django HTML . , mod_wsgi , Django Apache. , . , , Wackamole.

  • , , ​​ MySQL, , . MySQL , , -, . , , .

, . , , apache, Django . , ( ) .

, Schlossnagle. http://www.amazon.com/Scalable-Internet-Architectures-Theo-Schlossnagle/dp/067232699X

+8

, .., . S. Lott .

. "Sharding" , SQL, . "nosql". , , Stackoverflow.:)

+3

(, . ), , :

Order By SQL Procedures, , django, , .

, (), ;) , .

MySQL Oracle , , .

, , , , - , , , "", , .

/

, , ... . Ask Tom, , / .

,

. , , .

:)

+1

:

  • , . memcached. ( webapps), .

  • Oracle . db.

  • Another thing worth considering is to use a system similar to FriendFeed . This solves the problem of "how do we make changes to the database without stopping the world?" more than anything else.

+1
source

If you find that the database is the bottleneck of your application, and now their path around it (for example, using caching), then you should also scale your database. Django has nothing to do with this

0
source

All Articles