Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Investigate SessionFactory.doInSession(...) and ReactiveSessionFactory.doInSession(...) [DATACASS-768] #936

Open
Assignees
Labels
@spring-projects-issues

Description

Mark Paluch opened DATACASS-768 and commented

Spring Data's approach uses a CqlSession per keyspace/tenant to achieve multi-tenancy. Keeping multiple sessions is considered an anti-pattern by the driver which should not be used.

A singleton session with keyspace routing capabilities would require the Cassandra V5 protocol as the new version allows association of keyspaces per statement.

The new protocol is not yet available so we should investigate whether we can switch to a callback-pattern to enclose Cassandra calls. Implementations of SessionFactory could go ahead and issue a setKeyspace call before and after the execution.

We also need to consider how this could work in an asynchronous scenario


No further details from DATACASS-768

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /