chiprook
← Software
SoftwareOctober 11, 2026, 17:00

MongoDB 8.3 arrayIndexAs cuts $map-with-index overhead by up to 31%

MongoDB 8.3 adds arrayIndexAs, which hands $map the element index directly instead of forcing a $range plus $arrayElemAt workaround. On arrays of 10,000 to 320,000 elements the new form runs 15-31% faster, but the gain drops to about 5% under ten concurrent aggregations.

MongoDB 8.3 arrayIndexAs cuts $map-with-index overhead by up to 31%
#MongoDB
Read next
Software

RTIPC brings near-zero-overhead inter-process communication to Linux

Software

MongoDB launches Atlas Infinite and MongoDB 9.0

Software

MongoDB 8.2 encrypted substring search costs 20x more per insert than equality

Science

GM unveils 8.3L Duramax diesel for Silverado and Sierra HD