/srv/irclogs.ubuntu.com/2013/05/20/#maas.txt

jtvmgz: hi — would you be a good person to ask about the Tag model code in MAAS?12:52
mgzyeah12:53
jtvExcellent.  I was wondering why TagManager.get_nodes essentially duplicates NodeManager.get_nodes.  Was there a performance problem with the ordering of SQL "WHERE" constraints or something?12:54
mgznot that I recall, probably just we weren't sure which would be more useful and ended up with both12:56
jtvI suppose there would have been a comment if there were some compelling nonobvious reason...  I think I'll just eliminate the redundancy then.  Thanks.12:56
jtvCould also be that it was written without a good "feel" for how filtering in this particular ORM works.12:57
mgzI'd certainly expect tag getting nodes and getting nodes filtered on tag to generate equivalently performing sql12:58
jtvYes, ultimately the DB back-end ought to transform past any such ordering dependencies.12:59
=== kentb is now known as kentb-out

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!