Oracle large object (LOB) type performance test

Source: Internet
Author: User

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0

Hardware 8c65g

About 74 I/O operations for database queries without lob

The database has lob but does not query lob I/O operations about 146.

The database has lob and query lob io operations about 1007.

From this conclusion, we can see that lob affects the query performance of a table. If the lob data type is used in a table, we recommend that you create a table independently, in this way, the query performance will not be affected even if the non-lob field is queried.

Lob can be used instead of static files.


The detailed report is as follows:

COST sorting order of queries

No LOB field in the table <the table has a LOB field but is not selected <the table has a LOB field and is selected

Each table below contains 1000 data entries

 

SQL> desc prod_data2.lob_cost_test_0

Name Null? Type

-----------------------------------------------------------------------------

ID NUMBER

TEXT VARCHAR2 (1000)

FULLTEXT CLOB

 

SQL> desc prod_data2.lob_cost_test_1

Name Null? Type

-----------------------------------------------------------------------------

ID NUMBER

TEXT VARCHAR2 (1000)

 

 

Selectid, text

From

Prod_data2.lob_cost_test_1

 

 

Call count cpu elapsed disk query current rows

-----------------------------------------------------------------------

Parse 1 0.00 0.00 0 1 0 0

Execute 1 0.00 0.00 0 0 0 0

Fetch 68 0.00 0.00 0 73 0 1000

-----------------------------------------------------------------------

Total 70 0.00 0.01 0 74 0 1000

 

Selectid, text

From

Prod_data2.lob_cost_test_0

 

 

Call count cpu elapsed disk query current rows

-----------------------------------------------------------------------

Parse 1 0.00 0.00 0 1 0 0

Execute 1 0.00 0.00 0 0 0 0

Fetch 68 0.00 0.00 0 145 0 1000

-----------------------------------------------------------------------

Total 70 0.00 0.00 0 146 0 1000

 

 

Selectid, text, fulltext

From

Prod_data2.lob_cost_test_0

 

 

Call count cpu elapsed disk query current rows

-----------------------------------------------------------------------

Parse 1 0.01 0.04 1 1 0 0

Execute 1 0.00 0.00 0 0 0 0

Fetch 1001 0.02 0.05 3 1006 0 1000

-----------------------------------------------------------------------

Total 1003 0.04 0.10 4 1007 0 1000

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.