Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2188

Performance and data consuption problem when viewing single entries in large databases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: Database add-on
    • Labels:
    • Testing Instructions:
      Hide

      Test on any device with DevTools and a 3.3 or newer site.

      1. Access the app as a student.
      2. Go to a database activity with some entries.
      3. Open DevTools > Network tab and clear its contents.
      4. Open the context menu and select View Single.
      5. Check in DevTools that the WS function "mod_data_get_entry" is called only once.
      6. Check that you can navigate to next/previous entries.
      7. Go back to the list of entries.
      8. Press the "View" icon of one of the entries.
      9. Check that you can navigate to next/previous entries.

      Note: The "Moodle Jobs" database in moodle.org displays an error in single view because the template has errors. Also, it does not display the "view" icon in the list of entries.

      Show
      Test on any device with DevTools and a 3.3 or newer site. Access the app as a student. Go to a database activity with some entries. Open DevTools > Network tab and clear its contents. Open the context menu and select View Single. Check in DevTools that the WS function "mod_data_get_entry" is called only once. Check that you can navigate to next/previous entries. Go back to the list of entries. Press the "View" icon of one of the entries. Check that you can navigate to next/previous entries. Note: The "Moodle Jobs" database in moodle.org displays an error in single view because the template has errors. Also, it does not display the "view" icon in the list of entries.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.6.1

      Description

      Steps to reproduce:

      • Browse entry by entry the Moodle jobs database in moodle.org
      • In the Chrome inspector, you will see that 59 requests are done for retrieving all the database pages

      In 3G or 4G is very very slow and it downloads like 1MB of data.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Mar/19