Web ページを取得し、それらに関するいくつかの重要な情報をオブジェクトに抽出し、それを ZODB データベースに書き込むソフトウェアを作成しています。これらのオブジェクトのうち約 350,000 個がデータベースに書き込まれることになります。
私のコードがしばらく実行された後、データベースに新しいオブジェクトを追加するたびにこのメッセージを投稿し始めました...
UserWarning: The <class 'persistent.mapping.PersistentMapping'>
object you're saving is large. (26362014 bytes.)
Perhaps you're storing media which should be stored in blobs.
Perhaps you're using a non-scalable data structure, such as a
PersistentMapping or PersistentList.
Perhaps you're storing data in objects that aren't persistent at
all. In cases like that, the data is stored in the record of the
containing persistent object.
In any case, storing records this big is probably a bad idea.
だから私の質問はまず第一に、エラーメッセージが追加されている単一のオブジェクトまたはデータベース全体のものとして言及している26MBです。これらの各オブジェクトは非常に小さいはずですが、新しいオブジェクトが追加されるたびにメッセージが表示されます。