Replies: 2 comments 12 replies
-
It would be fairly easy to make a copy of the implicit_subquery plugin that raises instead of using an implicit subquery. Is that what you want? It's just as bloating as implicit_subquery, but honestly, I don't think the amount of bloating is excessive (was it a bottleneck in your application)? For a general case, it's expected that Sequel dataset methods will only use the parts of the dataset they are expected to use, and not check for parts they are not intended to use: ds = DB[:table].insert_ignore
ds.insert(:a=>1) # insert_ignore setting used
ds.all # insert_ignore setting not used |
Beta Was this translation helpful? Give feedback.
-
I was thinking more it makes the queries themselves a bit longer. It's not so much about system overhead, as the legibility of logs and the like:
So far, I've done some small restructuring to do more raw SQL stuff to avoid subquery wrapping. I was thinking I would use Perhaps I should enable |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
Contrast these two situations:
I seem to remember figuring out in the past that, if I wanted this to do what was expected, I wanted the "implicit_subquery" plugin. But, I felt the amount of bloating to enable
implicit_subquery
all the time was perhaps excessive.Now, it occurs to me: something that seems better would be a plugin that crashes/raises an error when dataset method chaining is ignored.
Is there a plugin like that?
Beta Was this translation helpful? Give feedback.
All reactions