Replies: 2 comments 1 reply
-
Getting this to work in / implement a replacement the
|
Beta Was this translation helpful? Give feedback.
-
Thanks for opening this feature request. I converted this to a discussion as that's a feature request and not a bug report and it also requires non-standard extensions to SQLite. That brings me to my next point: Given that this is not a standard extension in SQLite we cannot use this in core diesel itself as we cannot assume that everyone enables and uses that particular extension.
This is certainly something we want to support. There was #2180 which tried to add this but got stuck due to we were not able to figure out a good solution to check if that functionality existed in the linked sqlite version at that point. It might be that this is now easily possible.
I'm not sure what you miss here, maybe you could provide an example? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Setup
Versions
Feature Flags
Problem Description
I am trying to find the latest
note
where
desired_senders
anddesired_note_tags
can be large lists of 50k entries, I'd have anticipated the following code being generated:but instead I get
which differs in the number of SQL variables. Now this works up until 999 (a compiletime fixed value for SQLite) but then it breaks.
The key here is
RARRAY
which is an SQL extension.What are you trying to accomplish?
Filter for the latest entry matching a few conditions.
What is the expected output?
Functional queries for large array memebership filter queries
What is the actual output?
An error, too many SQL variables
Are you seeing any additional errors?
No
Steps to reproduce
Since this is at the boundary of feature/bug, I'd like to discuss first if you have the capacity to address it.
Checklist
closed if this is not the case)
Beta Was this translation helpful? Give feedback.
All reactions