I'm reading a tutorial on MongoDB on how to model the DB for commenting system in here. One comment document has the following information:
{
_id: ObjectId(...),
discussion_id: ObjectId(...),
parent_id: ObjectId(...),
slug: '34db/8bda'
full_slug: '2012.02.08.12.21.08:34db/2012.02.09.22.19.16:8bda',
posted: ISODateTime(...),
author: {
id: ObjectId(...),
name: 'Rick'
},
text: 'This is so bogus ... '
}
What I can't seem to understand is what the slug
and full_slug
are for, can't understand it from the document.