|
|
|
|
|
by Southland
1637 days ago
|
|
To me, the first optimizations I’d look at are the following: - Find the amount of time a user can still view a non real-time report. If the report timeframe is days then you can simply show the last full day. Even if it is real-time, using a small TTL and avoiding the recalculation on every refresh will help. Personally, I think users are forgiving with some lag between actions and reporting. “ I'd like to find some way to be able to make multiple calculations on reasonably large sets of objects without making the user wait like 10 seconds.” - If you can’t get it fast enough, then avoid your calculations in Python over large data objects you need to always have loaded in memory. Moving the raw data into a database better suited for the aggregations/calculations needed could reduce the time your user has to wait. |
|