Project

Profile

Help

Issue #502

pulp-manage-db drops and rebuilds all indices every run

Added by rbarlow over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.4.0
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
Every time pulp-manage-db is run, it drops all DB indices and rebuilds them. This is very inefficient.

Version-Release number of selected component (if applicable):
2.4.0-1

How reproducible:
Very

Steps to Reproduce:
1. Run pulp-manage-db on a Pulp installation with data (repos with units, for example).

Actual results:
Observe that it takes a while before applying migrations.

Expected results:
There is no need to drop indices that we are going to just regenerate.

Additional info:
If we switch to Mongoengine, it will take care of index management for us.

+ This bug was cloned from Bugzilla Bug #1134021 +


Related issues

Has duplicate Pulp - Issue #972: [RFE] do not recreate indexes by defaultCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from NEW to MODIFIED
  • Assignee set to dkliban@redhat.com
  • Platform Release set to master

Fixed by a story from last sprint.

https://pulp.plan.io/issues/152

#3 Updated by bmbouter over 6 years ago

  • Severity changed from Medium to 2. Medium

#4 Updated by rbarlow over 6 years ago

  • Platform Release changed from master to 2.7.0

#5 Updated by mhrivnak over 6 years ago

  • Has duplicate Issue #972: [RFE] do not recreate indexes by default added

#6 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#7 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#10 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF