Skip to content

Conversation

lavrukov
Copy link
Contributor

@lavrukov lavrukov commented Jun 2, 2024

No description provided.

@lavrukov lavrukov force-pushed the separate-projections-poc branch 4 times, most recently from 145fb89 to 17e56a5 Compare June 2, 2024 16:07
TransactionLocal getTransactionLocal();
}

public static class CheckingQueryExecutor implements QueryExecutor {
Copy link
Contributor Author

@lavrukov lavrukov Jun 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work. I gave birth to this, I will kill it

TransactionLocal getTransactionLocal();
}

public static class CheckingQueryExecutor implements QueryExecutor {
Copy link
Contributor Author

@lavrukov lavrukov Jun 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work, I gave birth to this, I will kill it

import java.util.function.Supplier;

public class TransactionLocal {
private final Map<Supplier<?>, Object> singletons = new IdentityHashMap<>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this singletons is made for case when in tx wasn't any query. But this objects is lightwave, maybe we can do it without singletons? Else I have to do some painful refactoring for this feature ;(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move projections to separate module Projection isn't found in tx cache
1 participant