Skip to content

Auto-completion is often very slow #6160

@fgouget

Description

@fgouget

What

  • The auto-completion process for drop-down lists is often takes over 30 seconds which seriously hampers use of the application.
  • The issue is not systematic. Furthermore there is no auto-completion when offline. Together these two points suggest the auto-completion process is querying data from the server and is thus slow whenever the server is slow to reply. Making the server faster would alleviate the issue but the completion data should really be cached in the application.

Steps to reproduce the behavior

  1. Edit a product and go to packaging components (Composants d'emballage)
  2. Go to a field like shape (Forme), material (Matière) or recycling instruction (Consigne de tri).
  3. Start typing a value like "bott", "plas" or "recy" respectively.
  4. The spinner appears in the edit field and keeps spinning for tens of seconds. During that time the suggestions list remains empty or does not take into account the latest content of the edit box.

This also impacts other parts of the application like the label list, categories, etc.

Expected behavior

To be useful the auto-completion should take a under a second.

Why

  • Delaying the auto-completion prevents the user from completing the input unless they know the exact wording and capitalization of the entry they want.
  • Without the auto-completion the user will just provide random variations on the expected values like "Transparent Polyethylene", "Transparent - PET", "transparent - pet", "PET : Transparent" instead of the expected "PET - transparent" (guessed from the French translation).
  • Auto-completion delays have a compounding effect : a 10 second delay translates into a 90 seconds delay in filling the packaging components for a typical product with just three packaging elements 3 (sleeve, container, lid) * 3 (shape, material, recycling) * 10 seconds. This seriously hampers the usability of the application.

Smartphone model

  • Device: Galaxy S7
  • OS: Android 8
  • App Version: 4.17.1
  • Language : French (the auto-completion provides localized suggestions and may thus also be looking up translations online)
  • Internet connectivity : WiFi then 1Gbps fiber

Metadata

Metadata

Projects

Status

💬 To discuss and validate

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions