Home > other > Comment back architecture of directing a table design, both please... Save the poor child...
Comment back architecture of directing a table design, both please... Save the poor child...
Time:10-29
Do the crawler climb took some questions and answers in the mongo database data storage, and my single dictionary design is: {" k1 ": the title of" q&a ", "url" : "document links", "k2" : "the q&a time", "k3" : "to answer a few," {" zhang ", "his answer is... ", "bill" : "his answer is... ", "detective" : "his answer is... "}}, my data structure is that the only won't change is that k1 and url, is the question and answer the questions and answers document link address will not change, the remaining anyone at any time to review, so this dictionary will be regularly updated, such specific what to do, how data storage operation, how to operate the query
CodePudding user response:
I saw the demand, probably think should meet the requirements, for reference:
Two table Issue information table Question_tbl ( Qid automatically increase field K1 Url ) Answer information table Anwser_tbl ( An automatic increase field Qid ID list Anwser_name answer people Anwser_comment answer content Anwser_time response time )
Question_tbl and anwser_tbl qid associations, Based upon the qid anwser_tbl grouping statistics k2 (last answer time), k3 (quantity)