Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1174

Efficient ConfigurationDAO.update_config()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.1.0
    • Component/s: Framework

      Description

      Each time we use update_config(), we are doing 2 writes.
      An interesting improvement is to check for the current value in the database and write the new one only if needed.
      We might win one thread lock and 2 write accesses.

      This change implies to review how the row factory is handled. It is spread in a lot of places (each time we ask for a cusor). A simple class atribute and a smarter row assignation will be better use for everyone.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h