Skip to content

Conversation

@fb64
Copy link
Contributor

@fb64 fb64 commented Dec 2, 2025

Issue

Closes #481

Change

Add DuckDB implementation for ChatMemoryStore for both in-memory and file based database.

General checklist

  • There are no breaking changes
  • I have added unit and integration tests for my change
  • I have manually run all the unit tests in all modules, and they are all green
  • I have manually run all integration tests in the module I have added/changed, and they are all green
  • I have added/updated the documentation

@fb64 fb64 marked this pull request as ready for review December 3, 2025 07:52
@Martin7-1 Martin7-1 added enhancement New feature or request P2 High priority P3 Medium priority labels Dec 6, 2025
Copy link
Collaborator

@Martin7-1 Martin7-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fb64 Thank you!

try {
var dbUrl = filePath != null ? "jdbc:duckdb:" + filePath : "jdbc:duckdb:";
this.tableName = getOrDefault(tableName, "chat_memory");
this.duckDBConnection = (DuckDBConnection) DriverManager.getConnection(dbUrl);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Does this connection need to be closed when the program stops?
  2. I'm not quite clear on how this connection is implemented. If update/delete/get are called concurrently, will the requests be queued in one connection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request P2 High priority P3 Medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Integrate with DuckDB as ChatMemoryStore

2 participants