Planetary has always had a piece of code that will only write a post into our SQLite database if it was created less than 6 months ago (or is a contact or about type). I assume was done as an optimization to keep the queries fast, because around 1 million messages they get really slow.
At some point we will need to remove this limit for several reasons:
Users want to see old messages. Especially after we add features like full text search.
Users databases will continue to grow over time, until eventually they run into the performance problems we are trying to avoid.
We tried removing this in #513, but it slowed down the app way too much so we are putting it back for now (#596).
When this ticket is done it will require an optimization pass on all SQL calls, especially the home feed and discover queries.
Planetary has always had a piece of code that will only write a post into our SQLite database if it was created less than 6 months ago (or is a
contact
orabout
type). I assume was done as an optimization to keep the queries fast, because around 1 million messages they get really slow.At some point we will need to remove this limit for several reasons:
We tried removing this in #513, but it slowed down the app way too much so we are putting it back for now (#596).
When this ticket is done it will require an optimization pass on all SQL calls, especially the home feed and discover queries.