sql数据库走索引怎么始终有物理读?_MySQL
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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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

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

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

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.)

<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

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

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.

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.
