-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

ASP.NET Core 8 and Angular
By :

The real-time filter that we’ve implemented in our Cities
and Countries
listing views works well and should be very helpful for our users; however, every time the filter text changes (that is, upon each keystroke), Angular fires an HTTP request to the back-end to retrieve the updated list of results. Such behavior is intrinsically resource-intensive and can easily become a huge performance issue, especially if we’re dealing with large tables and/or non-indexed columns.
Are there ways to improve this approach without compromising the results obtained in terms of user experience? As a matter of fact, the answer is yes, as long as we’re willing to implement a couple of widely used techniques specifically meant to improve the performance of code that gets executed repeatedly within a short period of time.
If we think about it, our everyday life is full of situations where we are forced to do something...