简体   繁体   中英

Google App Engine + Google Cloud Storage + Sqlite3 + Django/Python

since it is not possible to access mysql remotely on GAE, without the google cloud sql, could I put a sqlite3 file on google cloud storage and access it through the GAE with django.db.backends.sqlite3?

Thanks.

否。SQLite需要App Engine上没有的本机代码库。

Since you cannot modify files in Google Cloud Storage (see this doc for further details), I don't think it would be a good idea to even try it. Additionally, the overhead of downloading (probably) every time the whole sqlite file would make your app really slow.

Google Cloud SQL is meant for this, why don't you want to use it?

If you have every frontend instance load the DB file, you'll have a really hard time synchronizing them. It just doesn't make sense. Why would you want to do this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM