Skip to content

Release v1.0.0: Performance improvements and bug fixes - #65

Merged
firstelementjp merged 10 commits into
mainfrom
develop
Jun 2, 2026
Merged

Release v1.0.0: Performance improvements and bug fixes#65
firstelementjp merged 10 commits into
mainfrom
develop

Conversation

@firstelementjp

Copy link
Copy Markdown
Owner

v1.0.0 Release

Performance Improvements

  • Taxonomy optimization for unchanged terms - Import now skips wp_set_post_terms() calls when taxonomy terms are unchanged, significantly reducing processing time for update-heavy imports.
  • Increased default batch size - Default import batch size increased from 100 to 500 rows, reducing AJAX overhead for large imports.
  • Configurable batch size limit - New fe_csv_import_export_import_max_batch_size filter allows per-site customization of the maximum batch size.
  • Detailed import profiling - Added granular profiling for import phases (preload, row context, row processor, meta/taxonomy preparation and application) with WP_DEBUG batch profile logging.

Bug Fixes

  • Fixed JavaScript ES module import syntax - Removed static ES module imports from main JS file to resolve browser syntax errors.
  • Fixed WP_DEBUG dialog issue - Temporarily force individual JS files in production mode to fix dialog opening issue when WP_DEBUG is disabled.

Documentation Updates

  • Updated README.md, readme.txt, and docs/ to version 1.0.0
  • Updated hook architecture documentation with new fe_csv_import_export_import_max_batch_size filter

Technical Notes

  • This release temporarily uses individual JS files instead of bundled script due to initialization issues in production mode. The bundled script issue will be investigated and fixed in a future release.

dxd5001 added 10 commits May 30, 2026 14:03
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.
@firstelementjp
firstelementjp merged commit faec336 into main Jun 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants