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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Count the number of database hit were made

Count the number of database hit were made

Scheduled Pinned Locked Moved Visual Basic
questiondatabase
8 Posts 4 Posters 1 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.
  • D Offline
    D Offline
    desanti
    wrote on last edited by
    #1

    Hello ! I'm using entity framework Is there any way to count how many database hit were made ? ( The reason why I make this question, is because i'm using a 3d party software that add some commands to Entity Framework. One of these is that several different queries (the software claim) are executed using a single database hit. I want to verify this.) Thank you !

    L M Richard DeemingR 3 Replies Last reply
    0
    • D desanti

      Hello ! I'm using entity framework Is there any way to count how many database hit were made ? ( The reason why I make this question, is because i'm using a 3d party software that add some commands to Entity Framework. One of these is that several different queries (the software claim) are executed using a single database hit. I want to verify this.) Thank you !

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you can't tell the difference, what does it matter?

      The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

      D 1 Reply Last reply
      0
      • L Lost User

        If you can't tell the difference, what does it matter?

        The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

        D Offline
        D Offline
        desanti
        wrote on last edited by
        #3

        I want to know if this software is telling the truth or no , if yes I want to use it.

        L 1 Reply Last reply
        0
        • D desanti

          I want to know if this software is telling the truth or no , if yes I want to use it.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Everyone lies.

          The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

          D 1 Reply Last reply
          0
          • L Lost User

            Everyone lies.

            The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

            D Offline
            D Offline
            desanti
            wrote on last edited by
            #5

            Are you Gerry Schmitz ?

            1 Reply Last reply
            0
            • D desanti

              Hello ! I'm using entity framework Is there any way to count how many database hit were made ? ( The reason why I make this question, is because i'm using a 3d party software that add some commands to Entity Framework. One of these is that several different queries (the software claim) are executed using a single database hit. I want to verify this.) Thank you !

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              It is quite possible to send multiple queries in a single request, look up "Little Johnny Tables", that is called sql injection. You can also get multiple result sets returned in a single request using a dataset, although this was painfully slow when I last looked (about 6 years ago). If you are using SQL Server then sql profiler will allow you to inspect each call to the database.

              Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

              D 1 Reply Last reply
              0
              • M Mycroft Holmes

                It is quite possible to send multiple queries in a single request, look up "Little Johnny Tables", that is called sql injection. You can also get multiple result sets returned in a single request using a dataset, although this was painfully slow when I last looked (about 6 years ago). If you are using SQL Server then sql profiler will allow you to inspect each call to the database.

                Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

                D Offline
                D Offline
                desanti
                wrote on last edited by
                #7

                i'm trying a 3d party tools Query Future | Entity Framework Plus[^] But i'm not sure if it's true what this tool claim to do ? The sql profiler it says : exec sp_executesql N'---EF+ Query Future 1 of 5....... .After there are 5 queries (I have 5 query that are executed with Future) But i don't know if these queries are executed in a single database hit ?

                1 Reply Last reply
                0
                • D desanti

                  Hello ! I'm using entity framework Is there any way to count how many database hit were made ? ( The reason why I make this question, is because i'm using a 3d party software that add some commands to Entity Framework. One of these is that several different queries (the software claim) are executed using a single database hit. I want to verify this.) Thank you !

                  Richard DeemingR Offline
                  Richard DeemingR Offline
                  Richard Deeming
                  wrote on last edited by
                  #8

                  There are several options:

                  • Use the SQL Server profiler[^];
                  • Use a tool such as MiniProfiler[^] to profile your EF queries;
                  • For EF6, use the built-in logging and tracing options[^];
                  • For EFCore, use the different built-in logging and tracing options[^];

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                  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