OffNet Newsroom

Daily topic roundup

Database Technology

Thursday, July 09, 2026 · 7 stories, curated & summarized — click any story for the source.

Amazon Aurora DSQL has released its change data capture feature into general availability, allowing real-time streaming of insert, update, and delete operations to Amazon Kinesis Data Streams. This managed service delivers change events directly to consumers like Lambda, S3, Redshift, or OpenSearch via Data Firehose without requiring infrastructure management. The architecture is designed to handle these streams with zero impact on the underlying database workload performance.

  • Stream DSQL changes to Kinesis for event-driven microservices without managing infrastructure.
  • Trigger Lambda functions or load data into Redshift/S3/OpenSearch via Data Firehose.
  • Designed to have zero performance impact on the source database workload.
  • Available in all AWS Regions where Aurora DSQL is currently supported.
HOW IT WORKSDSQL CDC Streaming Pipeline1DSQL captures changes2Streams to Kinesis3Routes to 3 consumers4Zero DB impact

Partition pruning typically requires filtering on the partition key, but Haki Benita demonstrates techniques to enable this optimization for non-partition columns. By leveraging specific data patterns and optimizer parameters like constraint_exclusion, queries can eliminate entire partitions even when the predicate targets different attributes. The approach involves managing outliers and potentially using local or global indexes to facilitate the planner's ability to skip irrelevant data segments.

  • Partition pruning is not strictly limited to the partition key column.
  • Data patterns and outlier handling can enable pruning on other fields.
  • The constraint_exclusion parameter influences how the optimizer handles these predicates.
  • Local and global indexes may play a role in supporting non-key pruning strategies.

Google has released AlloyDB AI functions in general availability, introducing a proxy model architecture that trains lightweight local models from LLM outputs. This approach allows queries to be processed directly within the database, eliminating the need for external API calls. Internal testing reports a 2,400x throughput improvement, achieving speeds of 100,000 rows per second for the ai.if function.

  • Eliminates network latency and API costs by running inference locally inside the database engine.
  • Achieves reported 2,400x throughput gains via smart batching and local processing.
  • Benchmarks currently apply only to internal tests of the ai.if function.
  • New capability requires training a proxy model from existing LLM outputs.
Planet PostgreSQL database

PostgreSQL enable_partitionwise_join: Decompose Big Joins

Christophe Pettus details the enable_partitionwise_join GUC, which allows PostgreSQL to break large joins into smaller per-partition operations when both tables share a partition key. This optimization is only active when explicitly enabled and requires strict adherence to partitioning constraints to function correctly. The feature aims to significantly reduce overhead for queries involving large, similarly partitioned datasets.

  • Enable partitionwise_join to let the planner decompose joins into per-partition pairs.
  • Both tables must be partitioned on the join key for this optimization to apply.
  • Strict partitioning constraints are required; misaligned schemas will not trigger the feature.
  • Explicitly enabling this GUC is necessary as it is not the default behavior.
  • Monitor query plans to verify the planner is using the partition-wise join strategy.

Momentic replaced its PostgreSQL caching layer with ClickHouse to manage over 2 million daily queries across 20 billion entries while keeping latency at 250 ms. The shift to a column-oriented architecture enabled the platform to handle its growing data volume and query load more efficiently. This rearchitecture supports the company's AI-driven software testing platform without compromising response times.

  • Columnar databases like ClickHouse excel at high-volume read workloads compared to row-oriented PostgreSQL.
  • Architectural shifts can sustain massive scale (20B entries) while maintaining sub-second latency.
  • Monitoring query volume and latency trends helps identify when to evaluate alternative storage engines.

Percona details practical strategies for moving production PostgreSQL workloads from the Crunchy Data operator to its own Kubernetes operator. The analysis focuses on evaluating trade-offs between downtime, operational complexity, rollback safety, and cost. The goal is to help engineers select the migration path that minimizes business risk during the transition.

  • Migration involves more than data movement; it requires balancing downtime against operational complexity.
  • Evaluate rollback safety and cost implications before selecting a specific migration path.
  • Percona provides comparative methods to reduce business risk when leaving Crunchy Data.
  • Kubernetes-native operators require careful planning to ensure zero-downtime or minimal impact.
TRADE-OFFMigration Trade-OffsSpeedAccept higher downtime riskSimpler initial executionLower immediate costSafetyMinimize business disruptionEnsure rollback capabilityHigher operational complexityvs

The pg_ivm 1.15 release introduces metadata restoration capabilities for Incrementally Maintained Materialized Views (IMMVs) during standard pg_dump and pg_upgrade operations. A new utility and function allow these views to resume incremental maintenance immediately after restore, eliminating the previous requirement to manually drop and recreate them. The update also corrects a bug where multiple trigger modifications on the same table caused inconsistent maintenance results.

  • IMMVs now survive pg_dump and pg_upgrade without manual recreation, simplifying backup and migration workflows.
  • New pg_ivm_dump_metadata utility and restore_immv() function automate metadata recovery for incremental maintenance.
  • Fixes inconsistency issues where multiple trigger updates on a single table broke incremental maintenance logic.
  • Reduces operational overhead for DBAs managing complex IMMV dependencies in PostgreSQL clusters.
CHECKLISTIMMV Maintenance FixesRestore IMMV metadata via pg_dump and pg_upgradeAutomate recovery with new pg_ivm_dump_metadata utilityFix inconsistent results from multiple trigger modificationsReduce DBA overhead for complex IMMV dependencies