I'm principally interested in using this library for denormalizations - thinks like:
class BlogEntry(Model)
# ...
num_comments = IntegerField()
class Comment(Model):
entry = ForeignKey(BlogEntry)
# ...
Where that num_comments column stores the number of comments, and is updated by a trigger any time a comment is added or deleted.
It would be great if the documentation included some examples of these! Happy to contribute some if I end up figuring this out for my project.
I'm principally interested in using this library for denormalizations - thinks like:
Where that
num_commentscolumn stores the number of comments, and is updated by a trigger any time a comment is added or deleted.It would be great if the documentation included some examples of these! Happy to contribute some if I end up figuring this out for my project.