SShortSingh.
Back to feed

DocumentDB 0.116 Adds Distinct Scan for $group Queries, Cutting Index Reads Sharply

0
·3 views

DocumentDB 0.116, released on August 20, 2026, introduces a distinct scan optimization for MongoDB-style $group aggregation queries running on its PostgreSQL extension. Instead of scanning all index entries and discarding duplicates, the new path jumps directly between distinct key values, reducing index reads from 50,000 entries to just 100 in a test dataset. The feature, called enableGroupByDistinctScan, is disabled by default and must be explicitly enabled via a system setting. DocumentDB is an open-source PostgreSQL extension that implements the MongoDB API, with Microsoft as its primary contributor through feedback from Azure DocumentDB enterprise users. The optimization builds on the same loose-index-scan principle previously applied to MongoDB's DISTINCT_SCAN for first- and last-per-group queries.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer Builds Agentic Fraud Investigator Powered by TigerGraph Graph Database

A developer has built an agentic fraud investigation tool using TigerGraph, a graph database platform, as part of the HHGOA2026 hackathon. The tool is designed to mimic how a human analyst investigates fraud by leveraging relational data connections. The project is built on the premise that fraud is inherently relational, making graph databases a natural fit for detecting it. The application is deployed via Streamlit and the source code has been made publicly available on GitHub.

0
ProgrammingDEV Community ·

FraudGraph AI Uses TigerGraph and GraphRAG to Build Explainable Fraud Investigations

A team built FraudGraph AI, an agentic fraud investigation platform, as part of a recent hackathon project. The system moves beyond single transaction scoring by mapping relationships across customers, cards, merchants, and historical cases using TigerGraph as its graph investigation layer. GraphRAG supplies structured graph context to a downstream reasoning pipeline, enabling the system to trace connected entities and identify non-obvious fraud patterns. A dedicated Risk and Uncertainty Engine separately evaluates fraud probability, confidence, and uncertainty to avoid premature or irreversible decisions. The platform also includes a Next Best Action Engine that produces deterministic, policy-aligned recommendations such as monitoring, blocking, or requesting verification.

0
ProgrammingDEV Community ·

Google Lens Tops 25 Billion Monthly Searches, With 20% Tied to Shopping

Google Lens has surpassed 25 billion queries per month, up from nearly 20 billion reported in October 2024, according to Google's Think with Google search trends briefing. Approximately one in five of those searches carries commercial intent, signaling that visual search is increasingly relevant to product discovery and retail. The platform allows users to search using images rather than typed keywords, making it especially useful for visually distinctive or hard-to-name products. Google's broader Search strategy has been moving toward multimodal experiences that combine visual input with text and product data. The growth in Lens usage suggests businesses should ensure their product images, descriptions, and structured data are consistent and accurately represent what is being offered.

0
ProgrammingDEV Community ·

DocumentDB 0.113 adds covering index support for $group aggregation pipeline

DocumentDB version 0.113, released on June 22, 2026, introduces an index-only access path for MongoDB-style $group aggregation queries within its PostgreSQL execution engine. DocumentDB is a fully open-source PostgreSQL extension that implements the MongoDB API, offering an open alternative for MongoDB applications. The new feature allows aggregation queries using $group and $sum to read directly from index entries rather than scanning full documents, improving query efficiency. In benchmark tests comparing versions 0.112 and 0.113 on a 10,000-row dataset, the updated version achieved zero documents examined while scanning only index keys. Microsoft is the primary contributor to the project, refining the extension based on enterprise customer feedback gathered through Azure DocumentDB.