Now RRS can be improved using Django QuerySet's instead of only basic ORM.
Using QuerySets didn't improved the efficiency. Using raw SQL calls instead
Sent patches for review.
This bug is solved by commit: http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/commit/?h=rrs&id=93eb061381660658bfcc42835e7457b8556a662e
no performance issues detected