Category: limit

How can I limit my database request according to the pagination of the datatable?

I am loading data from my database, which is a very high amount of data. To get a real fast performace, I limit the data (with my parts function) Controller.php $table = $this->em->getRepository($EntityName)->parts(10); $table_json = $serializer->serialize($table, ‘json’); $table_array = json_decode($table_json);…