enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

toolbox import progress and slow listing in terminal #6679

Closed ComLock closed 5 years ago

ComLock commented 6 years ago

When importing huge exports like 14.24GB I have no idea whether an import is frozen or still working except looking at the server log.

Also when it finishes the listing of imported content is sooooo long that the terminal take a long time to list, just because of the "baud" rate of the terminal... Which makes the import seem even slower.

So logging to a file and then reporting where that file is could be a log quicker?

ComLock commented 6 years ago

Just as an example:

This takes 3 minutes: time $XP_INSTALL/toolbox/toolbox.sh import -a su:password -t cms-repo:draft:/content -s cms_content/content 2>&1 > import.log

This also takes 3 minutes: time cat import.log

ComLock commented 6 years ago

import.log is 40MB and looks like a very long line, so less and tail really don't work on it. And atom freezes.

alansemenov commented 5 years ago

We're replacing toolbox with Enonic CLI in 7.0 which will have progress update on time-consuming tasks