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

Speed up catalog search by reader #127

Closed
twinkietoes-on opened this issue Nov 4, 2021 · 3 comments
Closed

Speed up catalog search by reader #127

twinkietoes-on opened this issue Nov 4, 2021 · 3 comments

Comments

@twinkietoes-on
Copy link
Collaborator

twinkietoes-on commented Nov 4, 2021

A member wrote: "I've noticed that any search of the Librivox catalogue by reader is very, very slow. I'm wondering if the speed of this search could be improved by an expedient as simple to implement as creating a database level index on the relevant reader field(s)?"

Priority: 3 (Medium)

@ITD88
Copy link
Contributor

ITD88 commented Nov 4, 2021

Could someone who has a working version of the test database try profiling get_projects_by_reader on line 352 of application/models/Project_model.php

get_projects_by_author (Line 198) is the much faster version but I can't tell where the fundamental difference is.

@twinkietoes-on
Copy link
Collaborator Author

Apparently the software updates vastly improved this. We can probably close the issue and reopen it in the future if we discover it has slowed down again. (I'd close it, but I'm not sure which option to choose.)

@notartom
Copy link
Member

notartom commented Dec 8, 2022

Huh, I knew the new versions of MySQL and PHP were supposed to be faster, but I didn't expect it to be this... obvious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants