mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
The decorator no longer queries dbForProject directly. Instead, getDatabasesDB pre-populates the mapping via setCollectionId() and uses a static cache (Metadata::getCachedMap) so the query runs at most ONCE per database per Swoole worker process. The decorator is now stateless — no database dependencies, just a pre-set map. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>