mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-26 04:09:50 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description [OSS] Fix TTL indexes in documentdb This moves the function to C and instead of querying the indexes and then getting the collection shards from pg_dist_shard table, it uses the C hook to get the table shards where for non-distributed it returns the base table and then uses that information to drop the expired records. ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses issues with TTL indexes in DocumentDB by refactoring and optimizing the deletion of expired rows. - `ttl_index.c`: Refactored the function to delete expired rows, added a new function `delete_expired_rows`, and optimized the deletion process. - `ttl_support_functions--latest.sql` and `delete_expired_rows--latest.sql`: Replaced PL/pgSQL procedures with C language implementations for better performance. - `collection.c`: Moved the function `GetMongoCollectionShardOidsAndNames` from `coll_stats.c` to `collection.c` for better organization.
841 B
841 B
documentdb v0.102-0 (Unreleased)
- Support index pushdown for vector search queries [Bugfix]
- Support exact search for vector search queries [Feature]
- Inline $match with let in $lookup pipelines as JOIN Filter [Perf]
- Support TTL indexes [Bugfix] (#34)
documentdb v0.101-0 (February 12, 2025)
- Push $graphlookup recursive CTE JOIN filters to index [Perf]
- Build pg_documentdb for PostgreSQL 17 [Infra] (#13)
- Enable support of currentOp aggregation stage, along with collstats, dbstats, and indexStats [Commands] (#52)
- Allow inlining $unwind with $lookup with
preserveNullAndEmptyArrays[Perf] - Skip loading documents if group expression is constant [Perf]
- Fix Merge stage not outputing to target collection [Bugfix] (#20)
documentdb v0.100-0 (January 23rd, 2025)
Initial Release