You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
IReadModels.Release for a sequence now resolves the schema once for the whole sequence instead of once per instance, and hands the sequence back untouched when the read model carries no compliance metadata at all.
Fixed
Reading a collection of read models no longer regenerates the same JSON schema once per row. Generating a schema is a function of the CLR type alone, so it is now generated once per type and shared. The compliance release pass asked for it per instance, which made serving a collection of read models — every emission of an observable query, for every subscriber — spend time proportional to the number of rows on work that produces an identical answer each time. Measured at 328 ms for 916 rows of a moderately sized read model, now effectively zero.