public function actions(){
$actions = parent::actions();
unset($actions['index']);
return $actions;
}
public function actionIndex(){
$activeData = new ActiveDataProvider([
'query' => Your_model::find(),
'pagination' => [
'defaultPageSize' => -1,
'pageSizeLimit' => -1,
],
]);
return $activeData;
}
I will have to increase the script execution time
I will have to increase the amount of memory per process
this will mean that you will not be able to handle more than one request. The web doesn't work.
I am developing an API and I constantly receive such requests from buyers. I'm tired of explaining that this is not a limitation (divide the result in pages) and good. Many people do not understand that API is not a database, which fed the query time it collects data from 100 tables and 10 databases and gives one result row. The web doesn't work. The task of the web servers to QUICKLY PROCESS MANY REQUESTS. It is easier to make 10 requests within a single keepalive connection than one request which is to lock a bunch of tables and give one line. Again the web doesn't work. - Helois commented on July 8th 19 at 15:56
public function actionIndex(){
$activeData = new ActiveDataProvider([
'query' => Your_model::find(),
'pagination' => false
]);
return $activeData;
}
you're missing another point - uniformity of approach to building APIs. Let's say you have 2 entities - one heavy and a list of these entities, you are breaking on pages, and one easy (for two int values each) without pagination. On the client side, retrieve a list of entities have to do in 2 ways. My answer to you is the uniformity of the API. - Helois commented on July 8th 19 at 16:05