the key thing here is that the former cannot have ...
# language-proposals
g
the key thing here is that the former cannot have an SQL query generated for it as the query genertor needs introspection of the method
someMethod
. In Jinq's case and I believe MongoDB's case, the result will simply be a table scan with the filter applied by the connector rather than having the filter applied by the database -> no performance win. In the latter case, the entire thing is composed of primatives that are implementable by the SQL query generator, meaning you will get the benefit of any secondary indexes you have on
ImportantDomainThing.alpha
or
ImportantDomainThing.x
.