0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Eclipse】ERMasterが重すぎて開けないとき

Last updated at Posted at 2023-09-21

はじめに

.ermファイルがある時を境に肥大化し(10MBくらい)、重すぎて開けなくなる。
テーブル数は多くても100個前後なので、このサイズは明らかにおかしい。

環境

MacOS
Eclipse Version: 2022-03 (4.23)
ERMater 更新止まっているのでとりあえず最新版

原因(バグ?)

.ermファイルに以下のような行が突然複製され続けて何万行と増えるときがある。

<referenced_column>42</referenced_column>
<referenced_column>42</referenced_column>
// ↑↓が何万行もある
<relation>1</relation>

.ermファイルのサイズが10MBを超えてくるとおおよそこの問題が発生している。
Windows環境でも発生しており、再現性がない。
弊社内で外部キーを貼っているときに発生するときがあると言っている方がいたが、毎回発生するわけではないのでどの操作が根本原因なのか不明。

一時的な対症療法

.ermファイルをVSCodeなどで開き、一括置換などで対象行を削除する。

クリティカルな発生原因が知りたい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?