4

LINQ queries or stored procedures? I prefer LINQ.
My boss says, if we are using LINQ we must be lazy and stupid.
What do you'll think?

Comments
  • 0
  • 3
    Depends on what you're doing. Like don't get me wrong Linq makes a lot of things easy, and if a project is pretty lax on performance requirements go for it. It's real easy though if someone who doesn't know what they're doing to use Linq to drag down performance though.
  • 2
    Totally what @Delite said.
    I once came through a project that converts LINQ result to IEnumerable and fetches all columns from database and use only few, now if you do that your system will be fucked up in no time :)

    When dealing with LINQ, Entity Framework ALWAYS keep it IQueryable, and only select the columns you will be using AND always disable tracking on read only queries where fetched objects are not expected to be modified during their life cycle, for example a get request to a DotNet service
  • 0
    How is this wk107?
  • 0
    @hubiruchi new user. Didn't know what it means. It was there by default.
  • 1
    @chrised132 There are weekly topics if you open website you will see it on top of feed list, so in the app when you click on the weekly topic then add a rant the tag will be there by default

    Check the image this is from the website, the app has the topic in the same location
  • 1
    Also, there are few tags helping filtering. Try using the "question" for questions.
    Also, welcome!
Add Comment