Is it good idea to use result of dump_bulk() method from django-treebeard instead serialization in Serializer or ModelSerializer classes in DRF?
I wanna to build e-commerce website with Django Rest Framework and React.
In e-commerce websites there are nested categories. So I needed to build model which can works with hierarchical data.And I stopped at the Django treebeard library.
I've chosen Materialized path algorithm for store hierarchical data.
But I decided to practice with this library before developing my main project and I tried to do serialization with one query to the DB but I failed
In Django treebeard there is dump_bulk()
method which get all data from DB in one query (But if I use Nested sets it get all data in multiple queries)
Is it good idea send result of dump_bulk()
method with Response()
object to client side?