The company made a telephone directory on yii2 and angularjs. People up to 100 people. It works fast, everyone likes. Then I decided to test and fill 50,000 users. Result - the page is loaded a minute and then terribly slow. Reduced to 5000 - a little better, but also not ideal. In general, while I think that the directory is optimally no more than 1000 entries. The question is - angular in general is suitable for this?
I deduce records like this
<div ng-repeat="m in totalmans = (item.mans| filter:search)"> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title"> <div><span ng-cloak ng-bind="m.name"></span> <span ng-cloak ng-bind="m.surname"></span></div> <div><span ng-bind="m.phone"></span></div> </h3> </div> <div class="panel-body"> <span ng-bind="m.email"> </span> </div> </div> </div> Where search
<input ng-model="search" class="form-control input-lg" type="text" placeholder="Именя, фамилию или номер"> This type list
{ "id":"2", "name":"_administraciya_", "description":"Администрация", "mans":[ { "name":"Всеволод", "surname":"Кравчук", "phone":"102", "email":"skyq@skyq.ru", "dep_id":"2" }, { "name":"Захар", "surname":"Любимцев", "phone":"115", "email":"skyq@skyq.ru", "dep_id":"2" }] }, { "id":"2", "name":"_administraciya2_", "description":"Администрация2", "mans":[ { "name":"Всеволод1", "surname":"Кравчук1", "phone":"102", "dep_id":"2" }, { "name":"Захар", "surname":"Любимцев", "phone":"115", "dep_id":"2" }] }