Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unique indexes for Containers tables #19

Closed

Commits on May 10, 2018

  1. Cleanup duplicates before adding uniq keys on Container tables

    Cleanup duplicates before adding uniq keys on Container tables
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    2a88a92 View commit details
    Browse the repository at this point in the history
  2. Add unique indexes to Containers tables

    Add unique indexes to Containers tables
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    8f455c0 View commit details
    Browse the repository at this point in the history
  3. Spec for cleaning up duplicates

    Spec for cleaning up duplicates
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    45297f1 View commit details
    Browse the repository at this point in the history
  4. Move the migrations to a newer date

    Move the migrations to a newer date
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    9c0172d View commit details
    Browse the repository at this point in the history
  5. Add Comp.System, Hardware and Op. System indexes

    Add Comp.System, Hardware and Op. System indexes
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    aa13a26 View commit details
    Browse the repository at this point in the history
  6. Change date of migrations

    Change date of migrations
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    95d8573 View commit details
    Browse the repository at this point in the history
  7. ContainerDefinition model was deleted

    ContainerDefinition model was deleted
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    853d393 View commit details
    Browse the repository at this point in the history
  8. ContainerServicePortConfig index should be service_id + name

    ContainerServicePortConfig index should be service_id + name
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    0b10b49 View commit details
    Browse the repository at this point in the history
  9. container_component_statuses table was removed

    container_component_statuses table was removed
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    ea662c8 View commit details
    Browse the repository at this point in the history
  10. Adding unique index for ContainerQuotaScope

    Adding unique index for ContainerQuotaScope
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    de1a966 View commit details
    Browse the repository at this point in the history
  11. Move migrations to a newer date

    Move migrations to a newer date
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    64f86f9 View commit details
    Browse the repository at this point in the history
  12. Keep latest duplicate instead of the oldest duplicate

    Keep latest duplicate instead of the oldest duplicate
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    07510bf View commit details
    Browse the repository at this point in the history
  13. Optimizing DB duplicates cleanup

    Optimizing DB duplicates cleanup, trying a query posted on PG wiki
    https://wiki.postgresql.org/wiki/Deleting_duplicates
    
    It works like a charm, on a table with 600k rows it took more than
    3hours (it never finished, who know how long it would have took)
    
    With this change, it cleans 600k table in about 3s.
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    e2990d4 View commit details
    Browse the repository at this point in the history
  14. Fix rubocop and code climate issues

    Fix rubocop and code climate issues
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    3e0ea8a View commit details
    Browse the repository at this point in the history
  15. Add missing tables and fields comparing to inventory_collections.rb

    Add missing tables and fields comparing to inventory_collections.rb
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    4f0e542 View commit details
    Browse the repository at this point in the history
  16. Manually define index name for container_volumes

    Manually define index name for container_volumes, since the generated
    is too long
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    226a8ff View commit details
    Browse the repository at this point in the history
  17. Properly define partial indexes for OS and Hardware

    Properly define partial indexes for OS and Hardware, this way it
    will be usable for upsert, since we always define 1 foreign_key
    and the rest is NULL.
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    88ff3b8 View commit details
    Browse the repository at this point in the history
  18. Modify container_quota_items unique index according to latest plans

    Modify container_quota_items unique index according to latest plans,
    where we want to keep archived quota_items untouched.
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    d4d9d96 View commit details
    Browse the repository at this point in the history
  19. CustomAtribute index without unique_name

    CustomAtribute index without unique_name, which is used only
    under OpenStack
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    5edeb5e View commit details
    Browse the repository at this point in the history
  20. Separate index for ContainerVolume and PersistentVolume

    Separate index for ContainerVolume and PersistentVolume
    Ladas committed May 10, 2018
    Configuration menu
    Copy the full SHA
    94cd6e5 View commit details
    Browse the repository at this point in the history