Closed Bug 2029157 Opened 4 months ago Closed 4 months ago

Speed up retrieving model download information

Categories

(Firefox for Android :: Translations, task)

All
Android
task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(2 files)

Attached image Translations-Toggle.png

When we turn off translations and turn it back on the Translations screen, there can be some latency when:

  • Translations is turned back on
  • Navigate immediately to "Download languages"
  • It can sometimes take several seconds to get the list of the models.

This bug is to see if there is an obvious way to speed-up this query to improve the experience.

When AI controls are turned off on Android, all of the model records are deleted.

If the user turns off AI controls, quickly turns it back on, and then navigates to
"Download Languages", Android had around a 6-8s latency in fetching the information.

On startup, for context, fetching the same information takes less that 1s.

It appears that fetching the information was queued behind a separate
delete commit for all 51 languages (320 attachments observed).

Improving the performance of deletion improved the performance of
fetching the information, since it wasn't waiting on those tasks as individuals,
but rather a single bulk commit.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: