Sharing Top Content from the Angular-sphere.

Performance Optimization Techniques – Third Rock Techkno

  • For example if your page is slow because of the database query and if you optimize the front-end or server side code it is not going to improve the performance at all.Here I am going to explain what are steps we can take for optimizations.Front-end performance optimizationAll the JS, CSS…
  • This is the time to start using webpack.Database side optimizationDon’t fetch extra data, if you want to display only 2 columns of a specific table than fetch only 2 columns instead of all.Inner join is better than left join as inner join do less row scan compare to left Join….
  • If your query is using temporary table then try to fix that problem.Create a proper index depending upon the where condition in the query.Server side optimizationMake sure you are not using unnecessary loops.Check the methods you are using that is not causing the slowness.Make sure the libraries you are using…
  • Push mechanism is the better solution for the notification.Caching Techniques for performance optimizationYou can use low level caching to cache your database queries with memcache store.You can use page caching when you are serving static pages.You can use HTTP caching if data is not changed server will respond with 304….
  • Here your data will be maintained and will not be deleted at all.Background ProcessingDon’t process all your data upfront following are the cases where we should use background processingEmail sendingExport large PDF, CSVImport data on daily or weekly basis from third partyI am sure that if you follow the above…

I am sure being a developer at some point of time we all encounter performance issues with the code we are developing. The issues with the performance comes in to play once we have scaled the project…

Performance Optimization TechniquesOptimization tipsI am sure being a developer at some point of time we all encounter performance issues with the code we are developing. The issues with the performance comes in to play once we have scaled the project considerably. And having said that there comes the biggest fear for the developer to explore the 1000s of line of code just pin point that small area that is causing the entire application to slowdown. The task is not a walk on rose petals but its also not as harsh as a marathon in Sahara.Now, before we start optimization, we need to figure our which is the possible area of the application causing the issue. Is it the front-end, service side or database side. Without knowing the area we cannot fix the problem.Hence, the first step would be to understand and figure out the area of your application that is causing the issue. For example if your page is slow because of the database query and if you optimize the front-end or server side code it is not going to improve the performance at all.Here I am going to explain what are steps we can take for optimizations.Front-end performance optimizationAll the JS, CSS and HTML in the project must be minifiedThe images that you have used should be optimized for the webCheck are we not binding extra event listeners? If we are binding multiple listeners on a single page it will slow down the page.Avoid fetching unnecessary data. Only fetch…

Performance Optimization Techniques – Third Rock Techkno