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

Split the wscache_2 table into several wscache tables

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.0.1
    • Caching

      We've done some SQLite performance analysis and it seems that the size of a table has a significant impact on performance.

      Since the wscache_2 table is one of the most used tables and also, the largest table by the number of records, it seems to be the very best candidate for optimisation.

      We could implement a simple solution such as having four tables:

      • wscache_core: for core_* WebService requests
      • wscache_mod: for mod_* WS requests
      • wscache_blocks: for blocks_* WS requests
      • wscache_tool: for tool_* WS requests
      • wscache_other: For the rest

      Apart from the previous, we need a way to identify that there have been improvements, so maybe we should improve the current DB profiling tools for capturing DB queries and overall performance time during a session and presenting a report. Using the previous, we should be able to compare two executions (with and without the suggested improvements)

            dpalou Dani Palou
            jleyva Juan Leyva
            Noel De Martin Noel De Martin
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.