Answer the question
In order to leave comments, you need to log in
"Cheaper" js array filter or API request?
The bottom line is, backend - Django REST framework, Vue.js frontend. From the backend, through the API, we get an array of data. How is it "cheaper" to work with data, for example, in a table - sorting, filtering, etc. Processing an array in js, or is it better to request a "new" array all the time by sorting / filtering DRF? As long as the data volumes are not large, the difference is not visible, but I would like to foresee this moment.
"Cheaper" - means the speed of information processing.
Answer the question
In order to leave comments, you need to log in
Follow the rule of thumb, if there is no paging or Infiniti skul then handle everything on the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question