Skip to content

Conversation

@nobuhiko
Copy link
Owner

@nobuhiko nobuhiko commented Feb 8, 2026

Summary

  • convertDataTypesForPostgreSQL で毎行呼ばれていた listTableColumns をテーブル名キーでキャッシュ化
  • shipping_order の保持データを全カラムから必要フィールド (commit_date) のみに削減
  • saveCustomer / saveProduct / saveOrder 完了後に不要プロパティを解放し gc_collect_cycles() を実行

Test plan

  • 2.x系バックアップの移行テスト
  • 3.x系バックアップの移行テスト
  • 4.x系バックアップの移行テスト
  • PostgreSQL環境での動作確認

closes #19

🤖 Generated with Claude Code

nobuhiko and others added 2 commits February 8, 2026 22:07
- convertDataTypesForPostgreSQLで毎行呼ばれていたlistTableColumnsをキャッシュ化
- shipping_orderの保持データを必要なフィールド(commit_date)のみに削減
- saveCustomer/saveProduct/saveOrder完了後に不要なプロパティを解放しGCを実行

closes #19

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
レコード件数のみだった検証に加え、各バージョン系統(2.x/3.x/4.x/member)ごとに
フィールド値の変換・結合・マッピングが正しいかを検証するテストを追加。
performMigration()ヘルパーを導入し、DBAL直接クエリでアサーションを行う。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

省メモリ化: スキーマキャッシュ・不要データ削減・フェーズ間メモリ解放

1 participant