Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Java
  3. CQEngine

CQEngine

Apache-2.0Java

A high-performance Java collection engine enabling SQL-like queries with indexes for microsecond latencies.

GitHubGitHub
1.8k stars254 forks0 contributors

What is CQEngine?

CQEngine is a high-performance Java library that enables SQL-like queries on in-memory collections with indexes, achieving microsecond latencies. It solves the problem of slow iterative searches by building indexes on object fields, allowing developers to offload query traffic from databases and scale application tiers efficiently.

Target Audience

Java developers building data-intensive applications that require fast querying of in-memory collections, such as real-time analytics, caching layers, or middleware needing low-latency data access.

Value Proposition

Developers choose CQEngine for its ability to outperform traditional iteration by thousands of times, support for multiple index types and persistence options, and seamless integration with existing Java collections without requiring external databases.

Overview

Ultra-fast SQL-like queries on Java collections

Use Cases

Best For

  • Building in-memory caches with complex query requirements
  • Offloading query processing from relational databases to reduce latency
  • Implementing real-time filtering and search on Java collections
  • Handling large datasets with low-latency range and equality queries
  • Developing high-performance middleware for data-intensive applications
  • Creating scalable Java applications that require concurrent querying and updates

Not Ideal For

  • Applications with extremely small datasets where linear iteration overhead is negligible
  • Systems requiring distributed query processing across multiple nodes or clusters
  • Use cases needing advanced full-text search features like stemming, synonyms, or fuzzy matching
  • Teams seeking a zero-configuration, drop-in library without manual attribute and index management

Pros & Cons

Pros

Microsecond Query Latency

Achieves millions of queries per second with latencies in microseconds, as benchmarked in the README showing over 1 million QPS on a single core.

Diverse Index Support

Offers multiple index types like hash, navigable, and suffix tree indexes, enabling efficient equality, range, and string matching queries for various scenarios.

Flexible Persistence Layers

Supports on-heap, off-heap, and disk persistence, allowing large collections with minimal heap usage, tested with up to 100 million objects on disk.

Concurrent and Transactional

Provides lock-free concurrent reads and MVCC transaction isolation for real-time updates, as detailed in the TransactionIsolation documentation.

Cons

Attribute Definition Overhead

Requires manual definition of attributes for each field to be indexed, which can be verbose and error-prone, especially for complex or nested objects.

Index Memory Consumption

Building indexes increases memory usage, which might be prohibitive for memory-constrained environments or when scaling to very large datasets with many indexes.

Limited Ecosystem Integration

While it integrates with ORMs like Hibernate, there's less built-in support for modern frameworks like Spring Boot or cloud-native tools, requiring custom integration efforts.

Frequently Asked Questions

Quick Stats

Stars1,770
Forks254
Contributors0
Open Issues69
Last commit2 years ago
CreatedSince 2015

Tags

#sql-queries#high-performance#concurrent#query-engine#data-structures#off-heap#java-collections#indexing#in-memory-database#persistence

Built With

J
Java

Included in

Java47.5k
Auto-fetched 1 day ago

Related Projects

Design Patterns implemented in JavaDesign Patterns implemented in Java

Design patterns implemented in Java

Stars94,101
Forks27,363
Last commit1 day ago
FizzBuzz Enterprise EditionFizzBuzz Enterprise Edition

FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.

Stars23,698
Forks804
Last commit1 year ago
Modern Java - A Guide to Java 8Modern Java - A Guide to Java 8

Modern Java - A Guide to Java 8

Stars16,734
Forks4,007
Last commit2 years ago
TestcontainersTestcontainers

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

Stars8,657
Forks1,849
Last commit4 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub