Home Database Mysql Tutorial sql数据库走索引怎么始终有物理读?_MySQL

sql数据库走索引怎么始终有物理读?_MySQL

Jun 01, 2016 pm 01:51 PM
sql database physics

bitsCN.com

   问题是这样的:
  1 sql> r

  2   1  select count(*)

  3   2  from t_edu_member_info

  4   3* where status='1' and xs_zy='1'

  01 执行计划

  02 -------------------------------------------------------------------------------------------

  03    0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1 Card=1 Bytes=10)

  04    1    0   SORT (AGGREGATE)

  05    2    1     FILTER

  06    3    2       INDEX (RANGE SCAN) OF 'IND_T_PREBM4' (NON-UNIQUE) (Cost=1 Card=5 Bytes=50)

  07

  08 统计信息

  09 ----------------------------------------------------------

  10          25  recursive calls

  11          14  db block gets

  12           3  consistent gets

  13           1  physical reads

  14         972  redo size

  15         375  bytes sent via SQL*Net to client

  16         372  bytes received via SQL*Net from client

  17           2  SQL*Net roundtrips to/from client

  18           1  sorts (memory)

  19           0  sorts (disk)

  20           1  rows processed

  这个结果已经跑了几次,但是 recursive calls 依然存在,后来从10046事件产生的trace文件中到了线索。用tkprof格式化trace文件后,可以看到:

  1 select count(*)

  2 from t_edu_member_info

  3 where status='1'

  4 and xs_zy='1'

  01 call     count       cpu    elapsed       disk      query    current        rows

  02 ------- ------  -------- ---------- ---------- ---------- ----------  ----------

  03 Parse        1      0.01       0.00          0          0          0           0

  04 Execute      1      0.78       0.90   

 

bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to convert a virtual machine to a physical machine? How to convert a virtual machine to a physical machine? Feb 19, 2024 am 11:40 AM

Converting a virtual machine (VM) to a physical machine is the process of migrating a virtual instance and associated application software to a physical hardware platform. This conversion helps optimize operating system performance and hardware resource utilization. This article aims to provide an in-depth look at how to make this conversion. How to implement migration from virtual machine to physical machine? Typically, the conversion process between a virtual machine and a physical machine is performed outside the virtual machine by third-party software. This process consists of multiple stages involving the configuration of virtual machines and the transfer of resources. Prepare the physical machine: The first step is to ensure that the physical machine meets the hardware requirements for Windows. We need to back up the data on a physical machine as the conversion process will overwrite the existing data. *Username and password for an administrator account with administrator rights to create system images. will be virtual

Physicists prove that humans live in a 'matrix'? The universe is a 'simulation system', and multiple systems confirm that information evolution tends to be stable Physicists prove that humans live in a 'matrix'? The universe is a 'simulation system', and multiple systems confirm that information evolution tends to be stable Nov 27, 2023 pm 01:37 PM

Some physicists have confirmed that human beings actually live in matrix space! ? Can such a seemingly mysterious conclusion be confirmed by science? Melvin Vopson, associate professor of physics at the University of Portsmouth and an expert in information theory, proposed in his new paper that the hypothesis that humans live in a simulated world may exist in the basic laws of information. For example, these laws can be hidden in human DNA genetic information or in digital information stored in computers. Paper link: https://pubs.aip.org/aip/adv/article/13/10/105308/2915332/information The second law of dynamics and his results show that over time

What is the relationship between cloud server vCPU and physical CPU? What is the relationship between cloud server vCPU and physical CPU? Feb 19, 2024 pm 07:10 PM

The vCPU in a cloud server is a processor that simulates running on the CPU of a physical server. A physical server can usually support multiple vCPU instances, and each instance runs independently. The number of these vCPUs depends on the configuration of the physical server and the cloud service provider's policies. The relationship between vCPU and physical CPU is achieved through time-division multiplexing technology, which means that the time of the physical CPU is divided into multiple time segments, and each segment is allocated to the vCPU of a virtual machine instance. Therefore, the vCPU of a virtual machine instance can only use the time slice assigned to it, not the entire physical CPU. The performance of a vCPU is limited by the underlying physical CPU. For example, a physical server with 4 CPU cores and 8 threads is most

AI blows up physics! Is 21-degree room temperature superconductivity scheduled for the Nobel Prize? Professor Nature withdraws his manuscript but receives investment from OpenAI AI blows up physics! Is 21-degree room temperature superconductivity scheduled for the Nobel Prize? Professor Nature withdraws his manuscript but receives investment from OpenAI Apr 12, 2023 pm 07:04 PM

Have humans achieved room temperature superconductivity at 21°C? The physics circle is completely exploded! Yesterday afternoon, Beijing time, a thunder exploded at the physics conference held in Las Vegas, USA - high-temperature superconductivity was suspected of achieving a disruptive breakthrough. At the meeting, physicist Ranga Dias of the University of Rochester reported this milestone breakthrough in room temperature superconductivity research. If Ranga Dias really achieves room-temperature superconductivity this time, the global energy consumption problem will be solved from the source - humans will use electrical energy to gain tremendous power. If we can fundamentally master controllable nuclear fusion, we can even conduct long-distance space travel. It can be said that mankind will really take off. And those who master this technology will undoubtedly lead the world. (It’s like science fiction coming into reality.)

Steps to install SQL Server 2021 Developer Edition on Windows 11 Steps to install SQL Server 2021 Developer Edition on Windows 11 Apr 25, 2023 pm 03:07 PM

<ul><li><strong>Click to enter: </strong>ChatGPT tool plug-in navigation list</li></ul><h3>Download address: https://www.microsoft. com/en-us/sql-server/sql-server-downloads</h3>&l

Tsinghua Optics AI appears in Nature! Physical neural network, backpropagation is no longer needed Tsinghua Optics AI appears in Nature! Physical neural network, backpropagation is no longer needed Aug 10, 2024 pm 10:15 PM

Using light to train neural networks, Tsinghua University results were recently published in Nature! What should I do if I cannot apply the backpropagation algorithm? They proposed a Fully Forward Mode (FFM) training method that directly performs the training process in the physical optical system, overcoming the limitations of traditional digital computer simulations. To put it simply, it used to be necessary to model the physical system in detail and then simulate these models on a computer to train the network. The FFM method eliminates the modeling process and allows the system to directly use experimental data for learning and optimization. This also means that training no longer needs to check each layer from back to front (backpropagation), but can directly update the parameters of the network from front to back. To use an analogy, like a puzzle, backpropagation

Hard core to solve Sora's physics bug! Four top universities in the United States jointly released: Install a physics engine for the video generator Hard core to solve Sora's physics bug! Four top universities in the United States jointly released: Install a physics engine for the video generator May 07, 2024 pm 05:01 PM

Some bugs appeared after Sora was released. Users on the Internet discovered some problems. Although the model did not fully understand the physical world, when the puppy was walking, the two front legs would intersect, which was unexpected. game. The interaction of objects is very important for generating video realism, but currently it is still very difficult to synthesize the dynamic behavior of real 3D objects in interaction. Action-conditioned dynamics is a research area that requires the perception of physical material properties of objects and the prediction of 3D motion based on these properties (such as object stiffness). Assessing physical material properties remains a thorny and unsolved problem because measuring physical material properties of real objects is extremely difficult due to lack of data support. Recently, M.I.T.

Comparison of PHP and traditional SQL database Comparison of PHP and traditional SQL database May 17, 2023 pm 02:51 PM

PHP is an open source scripting language widely used for web development. SQL (StructuredQueryLanguage) is a standard language used to access and manage relational databases. In web development, PHP and SQL are two commonly used tools. This article will compare the relationship between PHP and traditional SQL databases and explore their respective advantages and disadvantages. Database connection PHP can connect to various types of databases, including MySQL, PostgreSQL and Oracle.

See all articles