阅读背景:

Python Django支持自定义SQL和无外键关系的非规范化数据库吗?

来源:互联网 

I've just started learning Python Django and have a lot of experience building high traffic websites using PHP and MySQL. What worries me so far is Python's overly optimistic approach that you will never need to write custom SQL and that it automatically creates all these Foreign Key relationships in your database. The one thing I've learned in the last few years of building Chess.com is that its impossible to NOT write custom SQL when you're dealing with something like MySQL that frequently needs to be told what indexes it should use (or avoid), and that Foreign Keys are a death sentence. Percona's strongest recommendation was for us to remove all FKs for optimal performance.I've just started learning Python Django and ha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: