Forgive/pokemon-online — comment on commit d6dec4192cde1cb59b702a6b7c33b424cf91fa7d
File:  line 0
By coyotte508:

Nice, but:

-> set default expire time to 6 months
-> set range up to 2 years

a way to optimize the query:

```cpp
-> get the current date by string
-> get the date - expire days
-> do the query sorted by expire date asc

while (q.next() && q.value(1).toString().compare(expirelimitstring))
{
//delete old player
}
```

That way it will process only the players needing to be deleted, and it will be faster!