Download the PHP package veysiyildiz/module-graphql-performance without Composer
On this page you can find all versions of the php package veysiyildiz/module-graphql-performance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download veysiyildiz/module-graphql-performance
More information about veysiyildiz/module-graphql-performance
Files in veysiyildiz/module-graphql-performance
Package module-graphql-performance
Short Description A comprehensive GraphQL performance optimization module for Magento 2
License MIT
Homepage https://github.com/veysiyildiz/magento2-graphql-performance
Informations about the package module-graphql-performance
Sterk GraphQL Performance Module for Magento 2
Overview
The Sterk GraphQL Performance module is a comprehensive solution for optimizing GraphQL performance in Magento 2. It addresses common performance bottlenecks, implements efficient data loading patterns, and provides robust caching strategies.
Features
1. Data Loading Optimization
- DataLoader pattern implementation for batch loading
- Prevention of N+1 query problems
- Efficient data retrieval for:
- Products
- Categories
- Customers
- CMS Pages/Blocks
- Orders and Invoices
- Brand Categories
- Credit Memos
2. Caching Infrastructure
- Multi-level caching strategy
- Intelligent cache tag management
- Automatic cache warming
- Query-level caching
- Field-level result caching
- Cache invalidation optimization
3. Performance Monitoring
- Query execution time tracking
- Performance metrics collection
- GraphQL query complexity analysis
- Resource usage monitoring
- Performance reporting
4. Database Optimization
- Connection pooling
- Transaction management
- Batch query optimization
- Efficient resource utilization
Installation
-
Install via Composer:
- Enable the module:
Configuration
Admin Configuration
Navigate to Stores > Configuration > Sterk > GraphQL Performance to configure:
-
Cache Settings
- Cache lifetime for different entities
- Cache warming patterns
- Cache invalidation rules
-
Performance Limits
- Query complexity limits
- Query depth restrictions
- Batch size configurations
- Monitoring Settings
- Performance logging
- Metric collection
- Report generation
Cache Warming Configuration
Configure cache warming in etc/config.xml:
Usage
Basic Implementation
Advanced Features
Custom DataLoader
Cache Tag Management
Performance Monitoring
Metrics Collection
The module automatically collects:
- Query execution times
- Cache hit rates
- Database query counts
- Memory usage
- Query complexity scores
Reporting
Access performance reports via:
- GraphQL API endpoint
- Admin dashboard
- Command line interface
Best Practices
1. Query Optimization
- Use field selection wisely
- Implement pagination
- Leverage query batching
- Monitor query complexity
2. Caching Strategy
- Configure appropriate cache lifetimes
- Use specific cache tags
- Implement proper invalidation
- Enable cache warming
3. Resource Management
- Configure connection pooling
- Monitor memory usage
- Implement query timeouts
- Use batch processing
Troubleshooting
Common Issues
-
Cache Invalidation
-
Performance Degradation
- Memory Usage
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
License
MIT License - see LICENSE.md for details
Support
For support, please:
- Check documentation
- Search existing issues
- Create a new issue
- Contact [email protected]
Changelog
See CHANGELOG.md for version history
All versions of module-graphql-performance with dependencies
magento/framework Version ^103.0.6
magento/module-graph-ql Version ^100.4.6
magento/module-catalog-graph-ql Version ^100.4.6
magento/module-store-graph-ql Version ^100.4.3
magento/module-customer-graph-ql Version ^100.4.6
magento/module-sales-graph-ql Version ^100.4.6
magento/module-quote-graph-ql Version ^100.4.6