-
Notifications
You must be signed in to change notification settings - Fork 692
@Interleaved(lazy=false) is still lazy for SqlSpannerQuery #2165
Comments
@s13o could you clarify your use case? Is it possible to use name-based query method instead of Thanks |
I'm afraid today with |
If you want to give it a try, feel free to propose a PR. By default we would prefer to have the eager fetch disabled for |
I'm not sure that I understood right why |
There is one more place where
@Interleaved(lazy=false)
still not supported even after the merge of #2110. The methodSqlSpannerQuery#executeReadSql
will execute a raw SQL without injection ofARRAY (SELECT AS STRUCT ...)
for Interleaved lists. But we can do it more or less safely in a methodSpannerStatementQueryExecutor.applySortingPagingQueryOptions
line 151 by replacing thewith something like
I'm afraid that it caused a bug with
@Query
annotation now -@Interleaved(lazy=false)
fields are not "proxied" anymore so they will be not loaded from the database, never, am I right?The text was updated successfully, but these errors were encountered: