Hi,
I just started zodbconvert
to convert a zeo storage (Data.fs and blobstorage) to an Oracle database instance. Together it is round about 24MB of data. However the conversion is ultra slow as you can see here:
2021-03-22 13:49:51,685 [relstorage.storage.copy] INFO Counting the transactions to copy.
2021-03-22 13:49:51,685 [relstorage.storage.copy] DEBUG Opened the other iterator: <ZODB.FileStorage.FileStorage.FileIterator object at 0x7f6d2123e700>
2021-03-22 13:49:51,685 [relstorage.storage.copy] DEBUG Iterator <ZODB.FileStorage.FileStorage.FileIterator object at 0x7f6d2123e700> doesn't support len()
2021-03-22 13:49:51,701 [relstorage.storage.copy] INFO Copying 1094 transactions
2021-03-22 13:51:02,379 [relstorage.storage.copy] INFO Copied tid 278263010425497958, 1 records | 0.031 MB/s ( 20/ 1094, 1.83%)
2021-03-22 13:51:07,402 [relstorage.storage.copy] DEBUG Copying <_io.BufferedReader name='/home/bibdok/resources/initDB/blobstorage/0x00/0x00/0x00/0x00/0x00/0x03/0x9a/0x7f/0x03dc96bc3554e477.blob'> to temporary blob file /home/bibdok/plone/instance/var/cacheblob/tmp/tmpjndmzs72.tmp for upload
2021-03-22 13:51:13,081 [relstorage.storage.copy] DEBUG Removing temporary blob file /home/bibdok/plone/instance/var/cacheblob/tmp/tmpjndmzs72.tmp
2021-03-22 13:53:01,544 [relstorage.storage.copy] INFO Copied tid 278269461149199854, 2 records | 0.022 MB/s ( 30/ 1094, 2.74%)
2021-03-22 13:58:51,543 [relstorage.storage.copy] INFO Copied tid 278286534009307767, 8 records | 0.008 MB/s ( 40/ 1094, 3.66%)
2021-03-22 14:04:40,362 [relstorage.storage.copy] INFO Copied tid 278293057120174677, 1 records | 0.005 MB/s ( 50/ 1094, 4.57%)
And that's all I am seeing up to now.
This is the script I am using:
<filestorage source>
path /home/user/resources/initDB/Data.fs
blob-dir /home/user/resources/initDB/blobstorage
</filestorage>
<relstorage destination>
shared-blob-dir false
blob-dir /home/user/plone/instance/var/cacheblob
<oracle>
dsn (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1521))(CONNECT_DATA=(SID=xxx)))
user xxx
password xxx
</oracle>
</relstorage>
There are other similar topics but they are not helping me:
- Zodbconvert: filestorage --> RelStorage much slower than other direction - #6 by tobiasherp
- Zodbconvert to Oracle RelStorage is very slow
Oh, and I am using Plone 5.2.2 with Relstorage in version 3.3.2 with Python 3.8 and the Oracle client in version 19.9.0.0.0 on CentOS 7 within a docker.
What is hapenning here? Why is it so slow? When working with an already initialized Plone it is very fast.