Release v1.0.0: Performance improvements and bug fixes - #65
Merged
Conversation
Collect meta and taxonomy data during row-by-row post processing, then apply in batch at the end of each CSV batch. Custom fields are inserted via bulk postmeta DELETE/INSERT; taxonomies are applied via WP API after the loop. Maintains existing hooks and dry run behavior.
Add batch-local term ID cache to avoid redundant term resolution within a batch. Maintains existing wp_set_post_terms behavior and hook compatibility.
- Implement dynamic batch sizing based on max_execution_time and memory_limit - Set maximum batch size to 100 to balance performance and responsiveness - Remove redundant get_term_by() calls in taxonomy field collection - Update plugin version to 0.9.9.5
- Add detailed profiling counters for import batch phases (preload, row_context, row_processor, success_log, success_counter_guid, prepare_meta_tax, compat_hooks, meta_apply, tax_apply, tax_resolve, tax_set_terms, tax_set_terms_calls, tax_set_terms_skipped, rows_profiled) - Add WP_DEBUG batch profile logging to debug.log - Fix JS ES module import syntax error by removing static imports from main.js - Implement Phase 2-A taxonomy optimization: skip wp_set_post_terms() when existing term IDs match CSV-resolved term IDs - Add get_existing_term_ids_for_batch() to fetch existing taxonomy term IDs via single direct SQL query - Add are_taxonomy_terms_unchanged() and normalize_term_ids_for_comparison() for deterministic comparison - Add tax_set_terms_calls and tax_set_terms_skipped profile counters - Performance improvement: 100-item import reduced from ~60s to ~1s in update-heavy scenarios
- Increase default import max batch size from 100 to 500 - Add fe_csv_import_export_import_max_batch_size filter to customize the upper limit per site/config - Keep dynamic time and memory based batch size calculation and existing final batch size filter
- Taxonomy optimization for unchanged terms significantly reduces processing time for update-heavy imports - Increased default import batch size from 100 to 500 rows to reduce AJAX overhead - Added configurable batch size limit filter for per-site customization - Detailed import profiling with WP_DEBUG batch profile logging for performance analysis - Fixed JavaScript ES module import syntax to resolve browser compatibility issues - Updated version numbers across all files - Updated changelog and documentation
…g opening issue This is a temporary workaround to resolve the issue where the import dialog does not open when WP_DEBUG is disabled. The bundled script appears to have initialization issues in production mode. Further investigation needed to fix the root cause in the bundled script.
When forcing individual JS files, the localize script handle must be 'fe-csv-import-export-core' instead of 'fe-csv-import-export-admin' to ensure feCsvImportExport is properly defined for all modules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v1.0.0 Release
Performance Improvements
wp_set_post_terms()calls when taxonomy terms are unchanged, significantly reducing processing time for update-heavy imports.fe_csv_import_export_import_max_batch_sizefilter allows per-site customization of the maximum batch size.Bug Fixes
Documentation Updates
fe_csv_import_export_import_max_batch_sizefilterTechnical Notes