How does django solve the problem of creating users in bulk?

A registration function. The function of accessing the registered url, url is to read the user names and passwords of 500 users from the excel file, read out a piece of data, run the create_user function at a time to create a user, but this will cause the client request to wait for too long, resulting in timeout errors.

now I want to store this data in redis, and then go back to 200 directly, then let the database read redis and create it slowly, but I don"t know how to do it. And I always thought there was something wrong with me. Ask for help

Mar.03,2021

the basic idea is to use "background processing queue" to deal with. In python, you can use huey . When the request is made, the task is queued for execution, and then a message such as" in process "is directly returned to the user. In this way, there will be no timeout, and redis, will be used in huey, but you do not need to operate the native redis.

I hope I can help you.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b306ef-2bd1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b306ef-2bd1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?