Uploaded file performance

2020-11-12 Thread kern zhou
Hi, I am using the django to handle the file upload. In the view implementation, I am trying to write the uploaded file to disk, but it causes bad performance because writing the uploaded file to disk spend lots of time. Is any better solution to handle the file upload? Maybe create a detach th

Re: Fetching data from database

2020-10-29 Thread kern zhou
How to queries in DB: https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-all-objects For the primary key: https://docs.djangoproject.com/en/3.1/ref/models/fields/#primary-key For the foreign key : https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.Fore