This PR is the result of an exploration into database indexes for common SSB message content types and data. While I initially felt that it might be best to keep index creation separate from solar, I realise that such an approach will likely decrease the chance of others using the software to develop their own client. If this turns out to be a bad idea, at least the index module is sufficiently encapsulated and can easily be split-off.
Each message is indexed immediately after having been appended to the database.
A next step would be to expose the index getter methods via JSON-RPC. It may also be worthwhile to consider approaches for validating, wiping / resetting and reindexing.
This PR is the result of an exploration into database indexes for common SSB message content types and data. While I initially felt that it might be best to keep index creation separate from
solar
, I realise that such an approach will likely decrease the chance of others using the software to develop their own client. If this turns out to be a bad idea, at least theindex
module is sufficiently encapsulated and can easily be split-off.Each message is indexed immediately after having been appended to the database.
A next step would be to expose the index getter methods via JSON-RPC. It may also be worthwhile to consider approaches for validating, wiping / resetting and reindexing.
Methods