Back to Blog Index
Automation Workflows2025-03-015 min read

Optimizing 500,000+ SKU Magento Catalogs with Vector Search & Async Indexing

Techniques for vectorizing massive e-commerce product catalogs without database locks, memory exhaustion, or indexing degradation.

A
Aprilo Product Engineering Team
Performance & Search Optimization
Deploying high-dimensional vector search on an enterprise Magento store with hundreds of thousands of SKUs requires careful architectural design. Vector embedding generation is computationally intensive. If integrated poorly into Magento's standard cron or indexer architecture, it can trigger memory exhaustion and database deadlocks.

The Pitfalls of Synchronous Catalog Indexing

Magento's traditional indexer processes product changes during saves. Attempting to generate dense 1536-dimensional vectors synchronously during product save blocks the admin interface and times out web requests.

To achieve true enterprise scalability, product attribute changes must be detached into lightweight message queues.

Using RabbitMQ message queues, attribute updates are batched into chunks of 100 SKUs, sent to private embedding microservices asynchronously, and indexed into OpenSearch k-NN indices with zero downtime.

Hybrid BM25 and Dense Vector Scoring

Pure vector search can struggle with exact alphanumeric queries, such as OEM part numbers or manufacturer SKUs like 'XYZ-902-A'.

A robust e-commerce search architecture combines standard BM25 token matching with cosine vector similarity using reciprocal rank fusion (RRF). This ensures that exact SKU searches remain pinpoint accurate while conversational, intent-based searches discover relevant catalog products effortlessly.

Conclusion

By combining asynchronous RabbitMQ workers, decoupled embedding microservices, and hybrid BM25/vector scoring in OpenSearch, merchants can unlock state-of-the-art semantic discovery at enterprise scale without risking catalog performance.

#Magento 2#Vector Search#OpenSearch#Async Indexing#Catalog Management

Discuss this architecture with our team

Have questions about implementing these architectural patterns in your Magento store or enterprise stack? Connect with our engineering group.