dbVisitor
21 articles- Milvus JDBC: Vector Writes and Search
Use the standalone jdbc-milvus driver to connect, create a collection, bind vectors, and filter nearest-neighbor results.
- JSON Field Mapping: Java Objects and Maps
Map a business object to JSON text using a type annotation, with Map configuration, update semantics and querying boundaries.
- One Mapper: Builders, Annotations, XML
Use one order Mapper with a builder default method, an annotated short query and an XML report query.
- Redis Product Caching with a Mapper
Use dbVisitor Mapper methods for Redis commands, map products to JSON, and manage cache expiration and eviction.
- Milvus Entity Mapping and DAO Design
Map a Milvus collection to Java entities, organize searches with builders and Mapper methods, and update selected fields.
- Milvus Hybrid Search: Vectors and Keywords
Configure BM25 through SQL, retrieve dense-vector and keyword candidates, and return one fused result set using RRF.
- Milvus Ingestion: Choosing a Write Method
Use jdbc-milvus for small writes, iterator-based paged ingestion and server-side Import, with distinct handling for counts, job IDs and failures.
- Milvus with SQL: Queries, ORM and Tools
Express Milvus writes, business filters and vector search in SQL, execute them through JDBC, then extend to dbVisitor object mapping, Mappers, DataGrip and DBeaver.
- Mapping BCE Dates: Two Approaches
BCE dates cause subtle "off-by-one" bugs between Java and databases. dbVisitor 6.7.0 adds JulianDayTypeHandler and PgDateTypeHandler to provide cross-database and PostgreSQL-native mappings. Database date ranges and handler boundaries still need consideration.
- Key-Value Queries: Two Columns to a Map
"Select two columns and build a Map" is a common pattern — ID-to-name, code-to-description, etc. The builder-level queryForPairs added in dbVisitor 6.7.0 returns a Map directly in one call, no manual iteration needed.
- pgvector: Mapping and Similarity Search
PostgreSQL's pgvector extension enables vector storage and similarity search, but Java lacked a clean mapping. dbVisitor 6.7.0's PgVectorTypeHandler maps vector columns directly to List with full Fluent API support for CRUD and KNN queries.
- Dynamic SQL: Rules and XML Compared
Dynamic SQL can be expressed with XML tags or written directly in SQL using dbVisitor rules. Both approaches require clear semantics for condition activation, parameter binding, and empty collections. This article covers common rule patterns and explains which forms are not interchangeable.
- Unifying the Database Dialect Layer
As dbVisitor expanded from RDBMS to NoSQL, the dialect system's abstractions became fragmented. This post explains a deep architectural refactoring that unifies dialect metadata and command building into a cohesive design — no functional changes, pure structural improvement.
- Inside dbVisitor's Two-Layer Adapter
dbVisitor's "Two-Layer Adapter" unifies RDBMS and NoSQL access through two abstractions: Layer 1 — a unified API (LambdaTemplate / Mapper) hiding syntax differences; Layer 2 — JDBC-compliant drivers wrapping NoSQL protocols. Use the full stack, or integrate the driver with an existing MyBatis project after checking its required JDBC capabilities.
- Unified Data Access: Layers and Limits
After dbVisitor can a single API truly unify RDBMS and NoSQL? This post tackles the controversy and explains the design principles behind dbVisitor's "One API, Access Multiple Databases" vision.
- dbVisitor: Many Databases, One API
Data storage has diversified beyond RDBMS to NoSQL, NewSQL, and AI Vector. dbVisitor aims to define the next-generation standard: One API, Access Multiple Databases.
- Elasticsearch with Mappers
In hybrid projects with both MySQL and ElasticSearch, the data access layer often splits between MyBatis XML and complex DSL builders. dbVisitor lets you operate ElasticSearch using the same Mapper interfaces and XML, unifying your data access code.
- MongoDB the MyBatis Way
In hybrid projects with both MySQL and MongoDB, the data access layer often feels fragmented — MyBatis Mapper on one side, MongoTemplate on the other. dbVisitor lets you operate MongoDB using the same Mapper interfaces and XML, achieving a unified architecture.
- MongoDB: Object Mapping and APIs
Java ORM tools are mature for RDBMS, but MongoDB's document model needs ODM (Object-Document Mapping) for clean Java integration. This post surveys the landscape and introduces dbVisitor as a JDBC-based solution.
- SQL Rules: Combining AND/OR Conditions
Use dbVisitor's AND/OR rules to build complex nested SQL conditions in one line.
- Streaming Large MySQL Tables
Read large MySQL results row by row with dbVisitor and Connector/J to control application memory.