Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work on comments feature #5

Closed
snytkine opened this issue Feb 12, 2011 · 1 comment
Closed

Work on comments feature #5

snytkine opened this issue Feb 12, 2011 · 1 comment
Labels

Comments

@snytkine
Copy link
Owner

Need to store comments under the QUESTION or ANSWER object as or as objects. Storing as array allows taking advantage of just pushing into Mongo, very easy. Store comments_count as separate field in collection. Also generate resource_id for comment and store then in each comment object as well as in separate collection that will map comment_id to question_id or answer_id as well as store the type of comment QUESTION or ANSWER, so that we know if which collection to look for it. Knowing just the commendID we can get collectionName and id or question or answer, the get all comments and then finally get that one comment.

Should also limit number of comments per resourse to about 50. This way it will not grow to such a size that it will impose memory problem because we will have to select all comments in many cases when we need to find specific one like for editing or for deletion

@snytkine
Copy link
Owner Author

Comment feature done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant