plainblack / Lacuna-Server-Open

The open source Lacuna Server repository.
36 stars 29 forks source link

Next colony cost calculation #428

Open icydee opened 8 years ago

icydee commented 8 years ago

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.