Change ID generation approach for housekeeper table to improve performance of parallel API requests to delete

XMLWordPrintable

    • S25-W26/27, S25-W28/29, S25-W30/31, S25-W34/35, S25-W36/37, S25-W38/39, S25-W42/43, S25-W44/45, S25-W46/47, S25-W48/49, S25-W50/51/52/01, S26-W02/03, S26-W04/05
    • 5

      Currently when deleting large amount of items or triggers which may caused when deleting different hosts in parallel API requests, for example, often locks to "housekeeper" row of "ids" table occurred for the first API request.

      The proposed solution is to use CUID-type IDs or native DBMS ID generation approach (bigserial (for Postgres) or AUTO_INCREMENT (for MySQL)) for primary key's field values, instead of "ids" table row. 

        1. screenshot-1.png
          8 kB
          Kirils Seve
        2. screenshot-2.png
          60 kB
          Kirils Seve
        3. events.png
          77 kB
          Kirils Seve
        4. dhosts_mysql.png
          17 kB
          Kirils Seve
        5. dservices.png
          30 kB
          Kirils Seve
        6. events-1.png
          77 kB
          Kirils Seve
        7. objects_psql.png
          17 kB
          Kirils Seve
        8. objectids_events_psql.png
          64 kB
          Kirils Seve
        9. screenshot-3.png
          41 kB
          Kirils Seve
        10. screenshot-4.png
          128 kB
          Kirils Seve
        11. screenshot-5.png
          21 kB
          Kirils Seve

            Assignee:
            Kirils Seve
            Reporter:
            Vladimirs Maksimovs
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 255h 20m
                255h 20m