Magento: Guides and Practical Know-how | Page 34 | mironsoft Blog
Magento
-
-
Jul 29, 2025
The N+1 problem is the most common performance antipattern in GraphQL APIs. It arises when every resolver of a list element triggers its own database query. The result: 100 products mean 101 queries. Batching and the DataLoader pattern solve the problem systematically, without sacrificing the flexibility of GraphQL.
-
Jul 28, 2025
Gift cards in Magento 2 are more than a simple voucher field: a clean data model in the giftcardaccount, secure code generation, correct checkout total integration, multiple redemption per cart, a resilient admin workflow for batch campaigns, and hardened API protection for headless and GraphQL checkouts decide whether gift cards work reliably and securely in production.
-
Jul 27, 2025
Legacy code is code without tests, and it cannot be changed safely without tests. The way out of this dilemma begins with characterization tests: tests that document the actual behavior, not the desired one. Introduce seams, break static dependencies and extract classes step by step, without changing a single line of production logic before the first test is green.
-
Jul 24, 2025
Anyone building headless checkouts, POS integrations or marketplace sync for Magento 2 cannot avoid the Quote Management API. CartRepositoryInterface, CartManagementInterface and custom totals collectors replace fragile direct model access with stable, versioned service contracts that stay reliable even under heavy cart load.
-
Jul 24, 2025
On catalogs with several hundred thousand SKUs, the catalogsearch_fulltext indexer quickly becomes an operational bottleneck: full reindex runs take hours, the cron job blocks other jobs, and PHP workers hit their memory limits. This article shows how batch size, partial reindex strategies and the Elasticsearch Bulk API work together to noticeably improve indexer performance on large catalogs.
-
Jul 19, 2025
Anyone who needs their own data to be searchable or aggregated at speed cannot avoid building a custom indexer. Instead of running expensive calculations on every frontend request, a custom indexer moves the work into a controlled, repeatable process that runs exactly when the underlying data changes.
-
Jul 19, 2025
A React storefront built on Magento's GraphQL API fully decouples frontend and backend, making the shop faster, more flexible and easier to maintain. Teams that understand the schema, pick the right client and plan caching and error handling from day one save months of later rework.
-
Jul 18, 2025
How does Magento 2 process every HTTP request? Bootstrap, FrontController, router chain, URL rewriting and action classes, the complete path fully explained.
-
Jul 17, 2025
Anyone who only ever runs tests and CLI commands in the terminal loses valuable seconds on every cycle. Run configurations in PhpStorm turn the green play button into a real tool, with a Docker interpreter, Xdebug integration and compound runs for complex workflows.