Seems like you have a topic with an invalid cid, should be fixed in master.
I have changed the branch into master,and it can run well now. Thanks you very much.
I'm trying to redesign mongodb database for better performance.
I didn't see a complete document at https://docs.nodebb.org/development/database-structure/ (for example there was no mention of documents for analytics).
if there is any document or guideline for mongodb queries and/or database design currently used in nodeBB it would speed up the process tremendously, if someone could share it.
I don't think there is any document like this, as even the current database structure docs page is fairly recent (It was created on 13th of June this year - commit history) and appears to not be finished yet.
So I guess reading the source code and asking questions here is your best bet for now
tnx, quess you are right. now I have to scan the whole source code for any use of database