Currently for every get_status call (pretty much every api call) the _next_colonycost is determined partially by determining how many colony ships are travelling out from the body.
This requires a db access every time for something which is most times not needed.
Look at how this call can be eliminated or cached.
Currently for every get_status call (pretty much every api call) the _next_colonycost is determined partially by determining how many colony ships are travelling out from the body.
This requires a db access every time for something which is most times not needed.
Look at how this call can be eliminated or cached.