ArticleslgStudy

computer science

CUBRID

CUBRID is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CUBRID rather than just read about it. In short: CUBRID ( "cube-rid") is an SQL-based relational database management system (RDBMS) with object extensions developed by CUBRID Corp. for OLTP. The name CUBRID is a combination of the two words cube and bridge, cube standing for a space for data and bridge standing for data bridge.

CUBRID — main illustration
CUBRID — illustration

Key takeaways

  • CUBRID belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CUBRID to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CUBRID from memory before moving on to harder problems.

Reference excerpt

CUBRID ( "cube-rid") is an SQL-based relational database management system (RDBMS) with object extensions developed by CUBRID Corp. for OLTP. The name CUBRID is a combination of the two words cube and bridge, cube standing for a space for data and bridge standing for data bridge. It is free and open-source software released under two software licenses: Apache and BSD.

License policy CUBRID has a separate license for its server engine and its interfaces. The server engine adopts the Apache License 2.0, which allows distribution, modification, and acquisition of the source code. CUBRID application programming interfaces (APIs) and GUI tools have the Berkeley Software Distribution (BSD) license in which there is no obligation to open derivative works. The reason to adopt two different license systems is to provide complete freedom to independent software vendors (ISV) to develop and distribute CUBRID-based applications.

Architecture The feature that distinguishes CUBRID database from other relational database systems is its 3-tier client-server architecture which consists of the database server, the connection broker and the application layer.

Connection broker The CUBRID connection broker's main roles are:

management of client application connections caching and relaying information (e.g. query results) query syntax analysis, optimization and execution plan generation To further improve performance, the connection broker uses a local object pool, which allows certain operations—such as tuple insertion, deletion, and DDL statements—to be deferred from the database server. This reduces server load and enhances responsiveness. Unlike traditional database systems where the connection broker and database server are on the same machine, CUBRID’s broker can run on separate machines. This distributed architecture enables better resource utilization, scalability, and high availability by allowing multiple machines to process queries on a single database. By offloading tasks and distributing processing power, the connection broker significantly improves database efficiency and performance.

Features

High Availability CUBRID's 3-tier architecture allows native support for High-Availability with two-level auto failover: the broker failover and server failover.

Broker failover When connecting to a broker via a client API, users can specify, in the connection URL, a list of alternative hosts where brokers are listening for incoming requests. In case of a hardware, network, operating system or software failure on one of the hosts, the underlying client API automatically fails over to the next host that a user has provided.

Server failover The High Availability environment can be built with 1:N master-slave server nodes. Each slave node communicates with the master via CUBRID Heartbeat protocol. When a master node is unresponsive, the first of the slave nodes will get promoted to a master role. Replication between nodes can be achieved in one of two modes: synchronous and asynchronous. Administrators can specify a list of server hosts each broker can connect to and, in the event of a failure of the master node, another will be used.

Scalability and Maintainability

Backup CUBRID supports online, offline and incremental backup.

Performance

API-level load balancing Because a connection broker can be configured in four different modes (read-write, read-only, slave-only, preferred host read only), the list of alternative hosts which a user has provided via the connection URL can be used as a method to balance the load. When Load Balancing is used, the client API will randomly choose a host among those specified in the connection URL except the one which was used to connect to last time. If the chosen host is not available, the selection will continue until all the hosts are determined as unavailable. In such case, the driver will report an error.

Query plan caching A query execution plan cache is implemented on the broker in order to skip most of the compilation steps on often used queries. Because the queries are parameterized during parsing, two queries that differ only by the values of literal constants share the same cache entry.

Storage

Indexes CUBRID has support for B+-tree indexes, both single-column and multi-column. The following types of indexes can be created:

Indexes and reversed indexes Unique indexes and reverse unique indexes Function-based indexes Filtered indexes The query optimizer can use indexes to produce faster execution plans using methods such as:

Identifying covering indexes Descending index scans ORDER BY skip GROUP BY skip Multi-range limit optimizations Index Loose Scan Index Skip Scan

Table partitioning CUBRID supports horizontal partitioning by range, hash and value lists, with a maximum of 1024 partitions per table. Partitions can be accessed independently and support most operations that are valid on a normal table. As of version 9.0, CUBRID implements execution-time partition pruning.

SQL support CUBRID implements a large subset of the ANSI SQL:1999 standard, extended with features from later SQL standards and custom features.

Window functions CUBRID provides support for window functions as defined in the SQL:2003 standard. The implemented functions are ROW_NUMBER, COUNT, MIN, MAX, SUM, AVG, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, RANK, DENSE_RANK, LEAD, LAG and NTILE.

Hierarchical queries Hierarchical queries using the non-standard START WITH ... CONNECT BY Oracle syntax are supported in CUBRID. Specialized pseudocolumns and operators are provided to control the behavior of the query execution.

Built in click-counter CUBRID optimizes the common scenario in web applications where database fields need to be incremented on certain events (e.g. page views). In contrast to the usual approach of using a SELECT/UPDATE statement combination, CUBRID can increment fields from within the SELECT statement execution, bypassing some expensive compiling, execution and locking overhead associated with an UPDATE statement.

Java stored procedures The only stored procedure language supported in CUBRID is Java, requiring a Java virtual machine to be installed on the system. The virtual machine is started and managed by the server and is used for code execution. Stored procedure code that requires database access must use the JDBC driver, either using the parent transaction or issuing a new one.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with CUBRID

Start with the simplest possible case. Write down what CUBRID claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CUBRID before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CUBRID ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CUBRID

In research
CUBRID appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CUBRID in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CUBRID is common in secondary-school and first-year university syllabi. It links to neighbouring topics Client-server database management systems, Cross-platform software, Free database management systems, so understanding it makes those chapters shorter.
In everyday life
Look for CUBRID outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CUBRID” →

How to study CUBRID in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CUBRID means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CUBRID out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CUBRID in simple terms?

CUBRID ( "cube-rid") is an SQL-based relational database management system (RDBMS) with object extensions developed by CUBRID Corp. for OLTP. The name CUBRID is a combination of the two words cube and bridge, cube standing for a space for data and bridge standing for data bridge.

Why does CUBRID matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CUBRID?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CUBRID.

Tags

  • Client-server database management systems
  • Cross-platform software
  • Free database management systems
  • ORDBMS software for Linux
  • Relational database management systems

Keep exploring