Skip to main content

Posts

How to Improve Linq Query Performance by using Parallel/ PLinq

How to Improve Linq Query Performance by using Parallel/ PLinq I want to highlight the disadvantage first, because if you know the disadvantage you can make a choice if required in your project or not. Don't use if you have a Single core or dual core CPU's. I found that depending on the complexity of For loop  the CPU performance reaches more than 70-80%  (Not talking about the simple For loop). So if you want to use the parallelism for complex loop make sure you have more than  2 CPU's Parallelization sometimes cause a  PLinq query to run slower than Linq to object equivalent. Basically it said like queries with few data source elements and fast user delegates are reluctant to speed up much. Parallel Linq is the parallel implementation of Linq. Parallel Linq implementation on loops provide better performance compared to sequential  loop. Parallel Linq also works like Linq queries operate on any in-memory IEnumerale ( of T) ...

Tips To Becoming A Leader At Work

Recently   i read an article from Yun   Siang Long At  Careerealism So Thought To Share With My Readers With Some Modification. 1. Take Accountability Take the accountability for   anything   that has your iconic belief in it. That means, as long as you   participate   in the project, you have a hand in the failure of   the   project. Learning accountability means not just the good/ successful  things, but even the   bad/failed   ones. Always find the best way to admit mistakes - it’s all right   to   be wrong, but need to identify and sort out. You cannot become a master, if   you   have not made any mistakes. One of the examples coming to my mind is Dr APJ Abdul Kalams Press Conference after a failed PSLV launch. He took the whole events in his  shoulder  and  briefed  the media with out exposing h...

Interviewer category

I attended a couple of interviews during my 5+ year career and    and  the experience of my friends circle,  especially for getting the first opportunity in the UK and came across various types of interviews. Based on that limited knowledge I can categorize the interviewers into 4 categories 1-     Technically well sounded interviewer 2-     Interviewer who has taken a list of questions and asking only those questions 3-   Interviewer have no idea about technology they are recruiting for but know about the kind of business the company is doing 4-     An interviewer who speaks more about the problems they faced with during the ex- colleagues Category-1 technically well sounded interviewer I came across 25-30%of technically sounded interviewers. They had clear idea about what they are recruiting for. Manipulating such an interviewer is a big issue. For all intervi...

How to write secure mvc application using encrypting URL

There are lots ways available to write the secure Mvc application. In my experience I came across lots of secure application in public facing. I want to tell about some of the mechanism I followed. 1- encrypting the URL Parameters and preserving id's encrypted on the client side 1- I always make sure if I pass Id or any sensitive data into the view always make sure it's encrypted. By doing so make sure if we forced to use HTML.hidden or HTML.hidden for have the encrypted values, in action link if I pass any parameters from the client side (eg:- edit or create or navigating between different actions we can make sure that all the values are encrypted) During the design of the actions results if it's http get I usually encrypt the sensitive data [httpget] Public actionresult display() { TestModel testModel=new TestModel(); testModel.id= encrypt(id); Return View(testModel); } [httppost] Public ActionResult Display(string id) { Guid d_id= new Guid(decrypt(id)); ...

A project management experience at the eve of release

Last 2 months I was not updating my blog because I was busy with some interesting opportunities in my career. Today I am writing this blog on the eve of a project release. Even though I have been involved in a lot of projects for more than 4 years, this is the project that went through all the process estimation, planning, design, implementation, uat and release happened as perfectly as planned. So I thought of sharing my wonderful experience with all my readers. This is the project my organization decided to outsource. But I am showing in my interest to manage this project to our commercial director. Finally lots of management level meeting finally it came to me, but with strict deadlines. On August first week commercial director given green signal for this project and given a business analyst to discuss the business needs. Myself will manage the project in terms of the technical side and the product side business analyst will help to get the requirement. I already worked with th...

Principles behind the Agile Manifesto

Recently read about agile manifesto. So thought to sharing it. More stories can be found at the agile manifest website, that is at the end. 1-    Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. 2-    Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage. 3-    Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale. 4-    Business people and developers must work together daily throughout the project. 5-    Build projects around motivated individuals. Give them the environment and support they need,   and trust them to get the job done. 6-    The most efficient and effective method of conveying information to and within a development team is face-to-face conversation. 7- ...

Compiled Query- Improve the performance of Linq to Entity Query

Most of the small or medium IT firms are using the Entity framework for the Data Access layer (DAL). If we write a complex linq to Entity queries performance will always be an issue. But with the Compiled Query Performance can be improved. This below definitions are from MSDN and more details can be found on the MSDN Link that is at the end of this post           When you have an application that executes structurally similar queries many times in the Entity Framework, you can frequently increase performance by compiling the query one time and executing it several times with different parameters. For example, an application might have to retrieve all the QuoteRevision for a particular quotelineStatus, the quotelinestatus is specified at runtime. LINQ to Entities supports using compiled queries for this purpose.               The  compiled query class provides compilation and caching of queries for reuse . Co...