Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate-projections-poc: MigrationProjectionCache #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
@@ -494,55 +494,6 @@ default <IN> void bulkUpsert(BulkMapper<IN> mapper, List<IN> input, BulkParams p
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

@@ -494,55 +494,6 @@ default <IN> void bulkUpsert(BulkMapper<IN> mapper, List<IN> input, BulkParams p
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

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