OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Overview

    Last Updated:2026-06-25 10:54:00  Updated
    Share
    What is on this page
    Applicable scenarios
    Hot data caching mechanism
    Hotspot caching strategy support
    References

    folded

    Share

    In the shared storage mode of OceanBase Database, full data is stored in object storage with lower costs, while frequently accessed or actively used hot data is cached locally to accelerate business queries. Caching hot data is an optimization method for storage costs and database performance. By default, the system dynamically caches hot data (frequently accessed) and evicts cold data (infrequently accessed) based on data access frequency and generation time. However, for sensitive queries, this automatic identification may introduce unexpected RT jitter.

    For business scenarios with clear hot and cold data distinctions, such as time-sensitive applications, you can define hot data ranges based on business characteristics (e.g., time boundaries) to customize hot data caching strategies. This approach overcomes the limitations of automatic hot/cold data identification, enhancing performance predictability. By pre-caching hot data locally, you can avoid RT jitter during queries.

    Applicable scenarios

    • Time-sensitive business: Applications that only need to view recent data.
    • High RT stability requirements: Applications sensitive to query latency for frequently accessed data.

    Hot data caching mechanism

    • Data attribute types:

      • HOT: Hot data is cached locally as much as possible. If local storage capacity allows, all hot data is cached locally.

      • AUTO: The system automatically identifies hot/cold data based on access frequency and dynamically prefetches and caches data.

      • NONE: Inherits the hot/cold caching strategy from the parent entity (e.g., a primary table). For example, if a local index has a caching strategy of NONE, it dynamically inherits the strategy from the primary table.

        Note

        When the hot/cold caching strategy follows the value of STORAGE_CACHE_POLICY at the parent level:

        • For a subpartition, the parent level is the partition.
        • For a partition, the parent level is the table.
        • For an index table, the parent level is the primary table.

    • Priority mechanism:

      • User-defined hot data has higher priority than automatically identified hot data.

    Hotspot caching strategy support

    • OceanBase Database supports customizing hot/cold caching strategies using SQL statements in the shared storage mode:

      • Creating tables (user tables/index tables) with specified table-level and partition-level hot/cold caching strategies (STORAGE_CACHE_POLICY).
      • Modifying table-level and partition-level hot/cold caching strategies (STORAGE_CACHE_POLICY) for tables (user tables/index tables).
    • OceanBase Database provides configuration items to set global hot/cold caching strategies:

      • Configuring the default caching strategy default_storage_cache_policy.
      • Enabling user-defined hot/cold caching strategies enable_manual_storage_cache_policy.
      • Pausing background caching tasks suspend_storage_cache_task.
    • OceanBase Database provides views to view caching strategies:

      • V$OB_TABLET_LOCAL_CACHE displays the overall caching status of each tenant on the current OBServer node.
      • V$OB_STORAGE_CACHE_TASKS displays the caching task information of each tenant on the current OBServer node.

    References

    • Create a table-level hot/cold caching strategy
    • Modify a table-level hot/cold caching strategy
    • Modify a partition-level hot/cold caching strategy
    • O&M guide for custom hot/cold caching strategies

    Previous topic

    Shared storage disaster recovery deployment
    Last

    Next topic

    Create a table-level hot cache strategy
    Next
    What is on this page
    Applicable scenarios
    Hot data caching mechanism
    Hotspot caching strategy support
    References