You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at your code and doing some testing it appears sorting querysets with eav attributes using operations like order_by isn't supported. If it isn't supported, can you recommend a technique for getting around this limitation short of bringing everything into memory and sorting it their?
The text was updated successfully, but these errors were encountered:
Hello benkank . Sorry for responding so late, we have created Django EAV for our own use and never though sombody else would ask about it :-)
Unfortunetly, there is no way to do that. We currently bring everything in memory and sort it here ourself. Django EAV is not made for performance but for flexibility. You should heavily cache everything you query from it.
We know it's a big limitation, but again, we didn't create it with a 'fit-all' purpose in mine. We are even surprised that people are trying to using it :-)
But this is an open source project and you are welcome to make a pull request with a patch of an implementation of any suggestions you would have to improve this. We will need unit tests to back up it as the code base is already pretty complex and it's easy to miss a bug in there.
Looking at your code and doing some testing it appears sorting querysets with eav attributes using operations like order_by isn't supported. If it isn't supported, can you recommend a technique for getting around this limitation short of bringing everything into memory and sorting it their?
The text was updated successfully, but these errors were encountered: