bitbake: toaster: reduce redundant foreign key lookups
authorDavid Reyna <david.reyna@windriver.com>
Wed, 21 May 2014 14:15:09 +0000 (15:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 May 2014 15:47:01 +0000 (16:47 +0100)
commitd26fdd16b061e2cacc7b488b8bb67768bde5159c
tree0e5a3ad767ce8118284d7cc85ce3f5cc9d74b103
parent3df2c07b3b1f2d630eda943f1ab6d4a23ffd7113
bitbake: toaster: reduce redundant foreign key lookups

Replace redundant foreign key lookups with "with" to improve all
recipes page load time. Do depends pre-lookup in the view class,
and use python itertation instead of filter() all to achieve x16
processing speedup.

[YOCTO #6137]

(Bitbake rev: a68a6dc50c11cc59e7c873414e3e22ac2644dea7)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Conflicts:
bitbake/lib/toaster/toastergui/views.py
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/toastergui/templates/recipes.html
bitbake/lib/toaster/toastergui/views.py [changed mode: 0644->0755]