HIDE様 ありがとうございます、 テキストヘのエクスポート時に「メモリが足りない」のエラーとなってしまいます。 加藤 -----Original Message----- From: HIDE Sent: Sunday, November 29, 2020 7:12 AM To: fireb****@lists***** Subject: Re: [Firebird-jp-general] Firebirdのメモリ不足 大量データの移行であれば、一旦テキストファイルに書き出してインポートするのはいかがでしょうか。 Delphiの標準InterbaseコンポーネントTIBQueryのBatchInputというメソッドを使った例がありました。 http://sookibizviz.blog81.fc2.com/blog-entry-250.html 2020年11月28日(土) 18:53 Kato <164****@saish*****>: 皆様、お世話になります。 加藤と申します。 DelphiXE7で Firebird1.5からFirebird2.5へのデータ移行をしています。 データ量は10年分60万レコード程です。 いっぺんに行おうとすると「メモリが足りない」とエラーとなるため 年毎にリストしてfor文でパラメータをIBQueryに設定し旧データを取り出しInsertしてますが、 同じく「メモリが足りない」のエラーとなってしまいます。 for i := 0 to YearList.Count-1 do begin Old.Old.ParamByName('mY').AsString:=YearList[i]; while not Old.eof do begin insert文 end; IBTransaction.Commit; end; 年毎を半年ごとに書き換えても同じく「メモリが足りない」のエラーとなってしまいます。 「メモリが足りない」のエラー無く完了させる方法は有るでしょうか? ちなみにfor文を使用しないで一年分だけを取り出してInsertするのなら問題ありません。 が10個のボタンが必要となってしまいます。 _______________________________________________ Firebird-jp-general mailing list Fireb****@lists***** https://lists.osdn.me/mailman/listinfo/firebird-jp-general _______________________________________________ Firebird-jp-general mailing list Fireb****@lists***** https://lists.osdn.me/mailman/listinfo/firebird-jp-general