Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strapi import functionality is very very very slow (max 45KB/s) #20270

Closed
alexbudin opened this issue May 6, 2024 · 7 comments
Closed

Strapi import functionality is very very very slow (max 45KB/s) #20270

alexbudin opened this issue May 6, 2024 · 7 comments
Labels
flag: question Automation Flag to handle community questions

Comments

@alexbudin
Copy link

Bug report

Required System information

  • Node.js version: 18.20
  • NPM version: 10.5
  • Strapi version: 4.24.1
  • Database: SqlLite
  • Operating system: linux-x64

Describe the bug

An export takes less than a minute, but an strapi import takes hours.
My export file is 180MB, mostly because of images.

When i try an import it it takes ages to do

this is the transfer rate of an import of a file that sits on the same machine that is not even encrypted. The screenshot below is of an in-progress transfer. Teh speeds fluctuate between 20KB to 44.8KB. The funny thing is that it never goes over 44.9KB/s

image

I thought of trying strapi export / import since the transfer option has never worked. I think most people using Strapi agree that you need a miracle to make a transfer work, but regardless, this is about the import functionality.

I dont understand how it can copy a file at the rate of 44KB/s. What does this import do? How does it work?

npm run strapi import -- -f export_20240506221330.tar.gz

Steps to reproduce the behavior

Just do an import of a previously exported strapi instace that has assets.

Expected behavior

An import that does not take 56-67 minutes for 180MB or images.

@alexbudin alexbudin changed the title Strapi import functionality is every very very slow Strapi import functionality is very very very slow (max 45KB/s) May 6, 2024
@alexbudin
Copy link
Author

This is the total import time

image

75minutes (1h 15minutes) - this is crazy

@alexbudin
Copy link
Author

Also seems the Logos did not import at all :(

image

I swear its better off to copy file manually from one instance to another than use all these tools.

@alexbudin
Copy link
Author

Any help here please?

@joshuaellis joshuaellis added the flag: question Automation Flag to handle community questions label May 14, 2024
Copy link
Contributor

This is a templated message

Hello @alexbudin,

I see you are wanting to ask a question that is not really a bug report,

Please see the following contributing guidelines for asking a question here.

Thank you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
@alexbudin
Copy link
Author

This is not a question. Its a bug

@alexbudin
Copy link
Author

@derrickmehaffy can you please help. This is not a question.

@0xPNG
Copy link

0xPNG commented May 21, 2024

I have the same issue.

@alexbudin I've noticed that if I export with the --no-compress option, the import is significantly quicker - although still slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: question Automation Flag to handle community questions
Projects
Status: Done
Development

No branches or pull requests

3 participants