Hi there,
Just wondering if there is a more efficient way of doing this, I want a process to happen almost instantly, after a user submits something I need to call it from the database, now following the advice here https://www.pythonanywhere.com/forums/topic/1563/ that is fine with a 'roll-your-own' solution as I can keep this going none stop, checking say every 30 seconds but this will eat away at my CPU allowance very quickly, especially as I might not have a user submit something for a few days.
The reason I want it to happen so quickly, is because I need to parse a file to do a number count so I can then do the appropriate billing, i.e. allowance.
Would there be a better way that is more efficient on my CPU? This process generally takes less then a second to do but there will be times where it will take up to 2+ minutes - hence the reason I can just do it between submission page loads.
Thanks in advance.