Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. LINQ and server side execution

LINQ and server side execution

Scheduled Pinned Locked Moved LINQ
databasecsharpsharepointlinqsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3981366
    wrote on last edited by
    #1

    Hi, With LINQ the queries are executed on server via server side code so doesn't it create extra load on server for query. Is it true that we can run db queries or sp's gives more performance over LINQ queries? Please justify whether it's true or not?

    A 1 Reply Last reply
    0
    • M Member 3981366

      Hi, With LINQ the queries are executed on server via server side code so doesn't it create extra load on server for query. Is it true that we can run db queries or sp's gives more performance over LINQ queries? Please justify whether it's true or not?

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      I am assuming you are referring to Linq to SQL.

      Member 3981366 wrote:

      server via server side code

      You mean database server? Yes

      Member 3981366 wrote:

      doesn't it create extra load on server

      What do you mean by "extra load" ? You need data so you will query the database, isnt it ?

      Member 3981366 wrote:

      Is it true that we can run db queries or sp's gives more performance over LINQ queries

      I do not understand this statement.The LINQ query is converted to a db query and then it is run on the database. So why do you feel it is different ? Well, there are some performance considerations but there are suggestions to overcome them too. The LINQ query will be converted to an database query and run on the databse returning you the result. It provides you with a strongly typed query language. See here Lind to SQL[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups