ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.19k stars 2.17k forks source link

[Suggestion/Discussion] Import: Improve user experience #7077

Closed david-allison closed 3 years ago

david-allison commented 3 years ago

The new Anking decks are big (~2.7GB) and users are getting (understandably) bored.

If possible, reduce the import time
Fir example I downloaded a 2.7 GB file
And it's taking like 1-2 hours and still not completed

One more thing, say can you add that if I'm importing a file, a big one and say I got bored then started playing YouTube for about half an hour or so then the import keep working in background
It could also help a lot
Coz I got bored today and played YouTube for like half an hour or so but then AnkiDroid restarted and all the progress was reset and I had to restart the import

We should warn the user:

We may want to take out a WAKE_LOCK, or move the process to a background job.

mikehardy commented 3 years ago

Those are stupendously large decks, but at the same time it is (in my opinion) the perfect use of technology. We should be supporting great audio/visual experiences during review etc. I like the idea of the wake lock

Any other messaging around large decks (don't forget to appeal to emotion and ask for solidarity, i.e. "We are working hard to improve support for import of very large decks. At this point it as at least possible, but it is likely to be slow. ...Suggestion, suggestion, suggestion...

david-allison commented 3 years ago

Had a user inquire about a 5.2GB deck today... might need to update my expectations in the PR

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

david-allison commented 3 years ago

Would be great to see https://github.com/ankidroid/Anki-Android/pull/7078 get over the finish line. Likely needs 15 mins of wakelock work.

krmanik commented 3 years ago

I have tested deck import on 1300 notes Anki deck (HSK5 word list) with audio.

  1. Importing of the deck without media files complete in around 14 seconds, then I copied media file manually
  2. Importing of the deck with media files complete in around 8 minutes These times may be change depending on decks and note type.

So, here may be if large deck there then exporting deck without media and importing will reduce the import time. But it needs to copy media files manually.

Edit: I checked the file name that was xiehanzi_hsk5 so 1300 notes. :(

david-allison commented 3 years ago

What about the time to check media/unzip & copy the files?

krmanik commented 3 years ago

xiehanz_hsk5 anki decks 1300 notes Unzip time for 1300 + additional 10 files: around 16 seconds Copy files to AnkiDroid: around 18 seconds

Extract directly to AnkiDroid collection.media folder: 16 seconds

krmanik commented 3 years ago

Check media time after manually copying files: 6 seconds

Creating zip file extracting it not ideal because file name get replaced with garbage character when extracting in phone. So, I copied from pc to phone.

krmanik commented 3 years ago

Above tests are not standard. Each test may need to use fresh install of app. I have created a list for testing. Testing manually will take time.

Time comparison for:-

Import deck

  1. With media and scheduling info
  2. Without media and with scheduling info
  3. With media and without scheduling info
  4. Without media and without scheduling info

Export deck

  1. With media and scheduling info
  2. Without media and with scheduling info
  3. With media and without scheduling info
  4. Without media and without scheduling info

Database and media Check database after manually copy media files Check media when media files are not in collection.media Check media after manually copy of media files into collection.media

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically