Skip to content

Conversation

@butonic
Copy link
Member

@butonic butonic commented Sep 9, 2014

on the way to fixing search lucene migrations, see discussion in #10205

@ghost
Copy link

ghost commented Sep 9, 2014

🚀 Test Passed. 🚀
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/7161/

@LukasReschke
Copy link
Member

This will run on every update which seems not to be intended or at least may make things notably slower if everybody does it this way. I'd compare against the app version and make it only run once.

@butonic
Copy link
Member Author

butonic commented Sep 9, 2014

The repair step only deletes duplicate rows which should not be noticable. Try estimating

SELECT fileid FROM oc_lucene_status GROUP BY fileid HAVING count(fileid)>1

and you will see that it is quite fast. With the primary key in place in search_lucene v0.6.0 it is even faster.

@butonic
Copy link
Member Author

butonic commented Sep 9, 2014

And well, it is intended, because the migration might break when there are duplicates.

@karlitschek
Copy link
Contributor

this looks good to me but can´t test at the moment. 👍 can someone else hep with properly test this?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the correct author?

@bantu
Copy link

bantu commented Sep 9, 2014

It's probably obvious, but anyway: This repair step is solely for the lucene application and as such this does not belong into the core repository.

@butonic butonic force-pushed the repair_search_lucene branch from d028035 to 8e2acb1 Compare September 10, 2014 08:23
@scrutinizer-notifier
Copy link

A new inspection was created.

@butonic
Copy link
Member Author

butonic commented Sep 10, 2014

@bantu all cleaned up, please see #10205 (comment) on why this has to live in core. issue to track that is in #10980

@ghost
Copy link

ghost commented Sep 10, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/7182/

@bantu
Copy link

bantu commented Sep 10, 2014

👍

@LukasReschke
Copy link
Member

Makes sense for me 👍

LukasReschke added a commit that referenced this pull request Sep 11, 2014
repair search lucene before installing
@LukasReschke LukasReschke merged commit bfebbe4 into master Sep 11, 2014
@LukasReschke LukasReschke deleted the repair_search_lucene branch September 11, 2014 08:09
@karlitschek
Copy link
Contributor

@butonic Please backport

@butonic
Copy link
Member Author

butonic commented Sep 11, 2014

backport to stable7 in 463ad5a

@lock lock bot locked as resolved and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants