-
-
Notifications
You must be signed in to change notification settings - Fork 122
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 compact index support for private sources #392
base: main
Are you sure you want to change the base?
Add compact index support for private sources #392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good!
I'm also interested to hear if this gave you any ideas about how we could improve the compact index gem for consumers, so their implementations could potentially be shorter/easier.
8fbeaa2
to
8993ad0
Compare
80b1844
to
0c3e854
Compare
Is there any extra configuration needed to enable this? Wanted to test locally, but see this when trying to bundle install against it:
|
@technicalpickles shouldn't be, what's showing up in the server logs? |
Startup:
During
|
I'll revisit this once there's a version of sqlite for jruby that supports what I used here |
88c97fc
to
6bf4489
Compare
408a581
to
10aeb06
Compare
Hey @segiddins, the jdbc-sqlite3 seems like a long term blocker at this point. Is the performance greatly affected by not having string_agg? I'd be willing to fix it up to see if we can get this in if you don't have time, but I could use some context about that choice. |
It's the only way to get an array out of SQLite unfortunately. I wish we knew what jruby usage was like :/ |
Would it feasible to disable compact index on jruby until the blocker is fixed? That way, non-jruby users would get the benefit. We could also keep a PR open to enable it on jruby, so we have a reminder and/or place to validate fixes. |
CI logs are not reachable anymore. Would you mind to rebase this and update deps? Seems there are some news at jruby/activerecord-jdbc-adapter#1149 (comment). |
This reverts commit 53d6769.
Signed-off-by: Samuel Giddins <[email protected]>
Signed-off-by: Samuel Giddins <[email protected]>
10aeb06
to
770c564
Compare
Signed-off-by: Samuel Giddins <[email protected]>
Signed-off-by: Samuel Giddins <[email protected]>
When I was looking closely at JRuby compact index results, they were coming out ordered differently even with identical code (and even aggregated as a separate query with its own sort) so I suspect jdbc-sqlite3 is not behaving identically to cruby's adapters. The order might be because of time field precision differences since we sort by created_at. Just a hunch. |
Description:
Ensured working via https://github.com/rubygems/gem_server_conformance
Tasks:
I will abide by the code of conduct.