8000 Documentsdb + vectordb (latest) by ArnabChatterjee20k · Pull Request #11402 · appwrite/appwrite · GitHub
[go: up one dir, main page]

Skip to content

Documentsdb + vectordb (latest)#11402

Open
ArnabChatterjee20k wants to merge 300 commits into1.8.xfrom
sync-mongodb
Open

Documentsdb + vectordb (latest)#11402
ArnabChatterjee20k wants to merge 300 commits into1.8.xfrom
sync-mongodb

Conversation

@ArnabChatterjee20k
Copy link
Contributor
@ArnabChatterjee20k ArnabChatterjee20k commented Feb 25, 2026

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

Currently this pr is pointing to 1.8.x but will be merged in documentsdb branch as this branch is extracted from documentsdb branch only and contains all the changes needed for the documentsdb syncing with 1.8.x branch

But currently it is poininting to 1.8.x to see the changes needed easily

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

ArnabChatterjee20k and others added 30 commits October 12, 2025 20:49
* setAttributeS
10BC0
upport to support context schema and schemaless in mongodb
* updated the connection registers
* database dsn fetching
* removed dsn from response models
* pools , env setup
* collections, db endpoints
* updated tests
Comment on lines +64 to 73
[
'$id' => ID::custom('database'),
'type' => Database::VAR_STRING,
'size' => 128,
'required' => true,
'signed' => true,
'array' => false,
'filters' => [],
]
],
Copy link
Member

Choose a reason for hiding this comment

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

@ArnabChatterjee20k Let's run the migration ASAP

Copy link
Member

Choose a reason for hiding this comment

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

Can we used the shared base?

args:
MODELS: ${_APP_EMBEDDING_MODELS:-embeddinggemma}
# duration to keep model in memory
OLLAMA_KEEP_ALIVE: 24h
Copy link
Member

Choose a reason for hiding this comment

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

Let's make this forever if possible, no need to re-download unless the model itself needs updating

ArnabChatterjee20k and others added 21 commits March 10, 2026 14:30
* Added new exception `MIGRATION_DATABASE_TYPE_UNSUPPORTED` with proper error metadata and HTTP 400 response.
* Replaced generic CSV database type errors with the new migration-specific exception for clearer error handling.
* Added support for `DOCUMENTSDB` in migration transfer resource service mapping.
* Fixed Appwrite report initialization by correctly injecting `getDatabasesDB`.
* Updated database adapter initialization to conditionally disable attribute support for `DOCUMENTSDB`.
* Moved `setSupportForAttributes` logic from pool initialization to database resource creation.
* Removed duplicate `getDatabasesDB` resource definition and redundant database event listener setup.
* Cleaned up unused variables and minor code inconsistencies.
* Fixed docblock formatting in `TransactionState`.
* Adjusted metrics handling in VectorDB embeddings text creation (removed unnecessary trigger/reset flow).
- Introduced a new constant `LEGACY` in Constants.php.
- Updated `databaseType` in Action classes to use `LEGACY` instead of `TABLESDB`.
- Cleaned up duplicate parameter definition in Create.php for transactionId.
* reverted install php
* deleted databasebase from tablesdb
- Updated embedding agent timeout to be configurable via environment variable.
- Removed commented code in XList for clarity.
- Refactored database cleaning logic into separate methods for better readability and maintainability.
- Changed version constraint for `spomky-labs/otphp` in composer.json to allow any 11.x version.
- Refactored `getDatabasesDBForProject` method in Migrations class to use the shorthand syntax for callable.
- Updated return values in Format class to use more descriptive types for index creation.
- Corrected parameter documentation in Attributes class for clarity and consistency.
- Updated docker-compose.yml to use a pre-built PostgreSQL image instead of a custom build.
- Removed obsolete PostgreSQL Dockerfiles from the project.
- Updated composer.lock with a new content hash.
- Moved the `setSupportForAttributes` method call from the adapter initialization to the database resource creation in `getDatabasesDB`.
- Updated the logic to ensure attribute support is set correctly based on the database type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0