Trying to speed up doc index

This commit is contained in:
Karl Cordes 2016-05-17 22:48:43 +10:00
parent affda516e4
commit b29bcaf3c8

View file

@ -15,7 +15,9 @@ class DocumentsController extends AppController {
function index() {
$this->Document->recursive = 0;
$this->set('documents', $this->paginate());
//$this->set('documents', $this->paginate());
$this->set('documents', $this->query("select id,type,created,user_id,pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;");
$this->set('users', $this->Document->User->getUsersList());
}