Skip to content

Comments

optimize getTotalServerItems to call model count and list in parallel#209

Open
gregorio-michael wants to merge 1 commit intoISBX:masterfrom
gregorio-michael:hotfix/optimize-getTotalServerItems-function
Open

optimize getTotalServerItems to call model count and list in parallel#209
gregorio-michael wants to merge 1 commit intoISBX:masterfrom
gregorio-michael:hotfix/optimize-getTotalServerItems-function

Conversation

@gregorio-michael
Copy link

No description provided.

function(error) {
});

$q.all([countPromise, $scope.loadItems(params)])
Copy link
Contributor

@tma-isbx tma-isbx Aug 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadItems() doesn't currently return a promise, so while this does execute both API calls in parallel, it isn't quite correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants