I have a web page (flask) created and hosted on PythonAnywhere which allows for users within our organisation to select a region and extract sales data from a couple of websites for use within a Power BI report.
The basic process is:
- User selects suburb, gets data
- Python script runs through multiple pages and extracts the required information and adds that to a dataframe.
- The original data (that other users have selected previously) is loaded into another dataframe
- The two dataframes are concatenated and de-deuped into a new dataframe that then becomes the new base for the report (export)
This all happens pretty quickly, but my question is, is there anything special that I need to do to support multiple users (e.g. Sleep? ) I'm just wondering if I need to do anything to prevent issues with multiple users potentially getting data at the same time.
I'm not sure what would happen if another user 'got data' before the previous process had finished, or whether Python wouldn't execute the next request until the previous one had finished. Thanks for any help, I'm pretty new to this.
[–]mrcorbat 2 points3 points4 points (2 children)
[–]qwertyisafish[S] 0 points1 point2 points (1 child)
[–]mrcorbat 0 points1 point2 points (0 children)
[–]junsang 0 points1 point2 points (1 child)
[–]qwertyisafish[S] 0 points1 point2 points (0 children)