Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Aggregate client-id field for improved Infinispan query #46471

@pruivo

Description

@pruivo

Description

Query the client session with
SELECT e.clientId, count(e.clientId) FROM %s as e WHERE e.realmId = :realmId GROUP BY e.clientId ORDER BY e.clientId
shows the message
Distributed sort not supported for non-indexed query 'SELECT C0, C1 FROM Row ORDER BY C0 ASC'. Consider using an index for optimal performance in the Infinispan cluster logs.

@ProtoField(1)
@Basic(projectable = true, sortable = true)
public String getClientId() {
return clientId;
}

Value Proposition

The field should be annotated with aggregate = true, so Lucene can do the aggregation natively.

Goals

.

Non-Goals

.

Discussion

No response

Notes

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions