From: OpenPj (@OpenPj) <noreply+OpenPj@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #1000: [RFC] Integration: OpenCrawling Output Connector for pgvector (Java 25 / Spring Boot 4)
Date: Fri, 17 Jul 2026 12:12:45 +0000
Message-ID: <gh-pgvector-pgvector-1000@github.com> (raw)
Hi @ankane and the pgvector community,
First, thank you for building and maintaining pgvector. It has completely transformed how we approach AI architectures by keeping everything within the robust PostgreSQL ecosystem.
I am Piergiorgio, an ASF Member and the lead architect of OpenCrawling (https://opencrawling.org/), an open source data federation engine built on Java 25, Spring Boot 4, and virtual threads. We recently built a native pgvector Output Connector to stream complex enterprise data directly into Postgres, and I am submitting this RFC to gather architectural feedback and ensure we are adhering to pgvector's best practices at scale.
## The Use Case
Enterprises struggle to securely feed massive amounts of data from legacy ECMs, BPMN workflows, and data lakehouses into vector DBs.
OpenCrawling solves this by extracting data, narrativizing it into semantic text using deterministic templates, and standardizing it via the Open Ingestion Standard (OIS). Our new pgvector connector then takes these high throughput streams (Vectors + Text + Zero-Trust ACL metadata) and pushes them to PostgreSQL.
## Architecture & Implementation Details
Because OpenCrawling leverages Java 25 Virtual Threads, we can handle thousands of concurrent ingestion pipelines without blocking OS threads. The connector currently:
- Connects to Postgres via standard JDBC / Spring Data.
- Creates tables dynamically (if needed) with vector types and jsonb columns for complex metadata (like Document-Level Security / ACL arrays).
- Uses JDBC batching to handle massive throughput.
## Feedback Wanted
Since we want this integration to be as robust as possible, we would love your insights on a few PostgreSQL/pgvector specific optimizations:
- High throughput batch inserts: given our highly concurrent virtual thread architecture, do you have recommended JDBC batch sizes or tuning parameters to maximize pgvector insertion speed without locking the target tables?
- Dynamic indexing strategy: when continuously streaming new enterprise data, what is the recommended lifecycle for building HNSW or IVFFlat indexes? Should the connector delay index creation until an initial bulk load is complete, or build it upfront?
- Hybrid security filtering: we enforce Zero Trust by storing ACLs (lists of allowed users/groups) alongside the vector. Have you seen better performance when storing these ACLs as standard text[] arrays or within a jsonb column when doing hybrid queries (vector distance + permission filtering)?
## Code Reference
You can view the specific connector implementation here: https://github.com/opencrawling/opencrawling/tree/main/oc-vector-output-connector
Any feedback, code reviews, or pointers to specific documentation would be greatly appreciated. We hope this integration helps drive even more enterprise adoption for pgvector!
Best regards,
Piergiorgio (PG) Lucidi