Thanks for the feedback. I'm not sure I would want to change the Device object directly, but I might consider a separate Snapshot object which keeps record of the latest Log object per Device. If I go down that route, I think I'll have to analyze a bit more between a One-to-One relationship <https://docs.djangoproject.com/en/dev/topics/db/models/#one-to-one-relationships> (linked) or Model Inheritance <https://docs.djangoproject.com/en/dev/topics/db/models/#model-inheritance> (copied) and the performance/resource trade offs of each.
On Friday, August 1, 2014 10:22:52 PM UTC-5, Collin Anderson wrote: > > I'm not an ORM/SQL pro myself, so if I were doing this, I would just > cache/denoralize the last value onto the device whenever there's a new log. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/747c80db-b8db-4d1b-8c85-74a8a36bb945%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.