cabal-club / cabal-cli

Terminal client for Cabal, the p2p chat platform.

Home Page:https://cabal.chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New db format proposal

okdistribute opened this issue · comments

commented

The current way that we are getting the channel list will make things slow if there are tons of messages. Also, to get the message list you currently have to filter out the /metadata entry.

If instead, we do /metadata/{channel} and /messages/{channel}/1 we can avoid these issues. Getting the channel list is then iterating on /metadata (which there should only be one per channel).