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 an index on some DB backends? #3382

Closed
ldidry opened this issue Apr 18, 2018 · 2 comments
Closed

Add an index on some DB backends? #3382

ldidry opened this issue Apr 18, 2018 · 2 comments
Labels
database Feature Request wontfix Wont Fix these things, no hate.

Comments

@ldidry
Copy link
Contributor

ldidry commented Apr 18, 2018

Hello,

At Framasoft, we have a ±100GiB PostgreSQL database for our Etherpad instance with MyPads plugin (more than 100,000 pads). MyPads uses the store table of Etherpad to store data. I needed to search some of those data (say SELECT * FROM STORE WHERE key LIKE 'mypads:user:%';) and it was horribly slow. After some tests, I added an index on the key column and the time dropped from more than 2 minutes to less than 100ms.

I added this index:

CREATE INDEX pattern_idx ON store (key varchar_pattern_ops);

Since Etherpad do some queries similar to the one I used, I think Etherpad should benefit of such index.

What do you think? Should it go in Etherpad do you think it should go in UeberDB?

@ghost
Copy link

ghost commented Apr 18, 2018

Somehow related: #1957. Anyway, I think this issue belongs to https://github.com/Pita/ueberDB/ :-)

@stale
Copy link

stale bot commented Jun 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Wont Fix these things, no hate. label Jun 4, 2020
@stale stale bot closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Feature Request wontfix Wont Fix these things, no hate.
Projects
None yet
Development

No branches or pull requests

2 participants