Hey everybody,
we started using Axon Framework using a JPA eventstore on MSSQL and we are getting this warning when creating the schema:
Warning! The maximum key length for a clustered index is 900 bytes. The index 'PK_snapshot_6880CBDB4BF99B99' has maximum length of 1028 bytes.
We are creating the schema with Flyway but we are using the specs that we got from the Hibernate generated artifacts:
create table snapshot_event_entry
(
aggregate_identifier nvarchar(255) not null,
sequence_number bigint not null,
type nvarchar(255) not null,
event_identifier nvarchar(255) not null,
meta_data varbinary(MAX),
payload varbinary(MAX) not null,
payload_revision nvarchar(255),
payload_type nvarchar(255) not null,
time_stamp nvarchar(255) not null,
primary key (aggregate_identifier, sequence_number, type)
);
I guess this is an issue only specific to MSSQL, but how can we overcome it?
Cheers,
Stefan