Comments (8)
A solution would be in the ReadStreamForward to use StreamVersion instead of Ordinal as the orderby clause.
hmm, they should both be in the right order. It's needed when reading all streams.
from sqlstreamstore.
Not sure whether you'll be able to pull that off:
http://blogs.msdn.com/b/sqltips/archive/2005/07/20/441053.aspx
from sqlstreamstore.
Last resort is that I dump the TVP approach.
from sqlstreamstore.
Isn't there a UC on the Ordinal column? Why not hand it out yourself (much like the StreamVersion)? I'm probably oversimplifying ...
from sqlstreamstore.
@yreynhout it's an identity column https://github.com/damianh/Cedar.EventStore/blob/master/src/Cedar.EventStore.MsSql2008/SqlScripts/InitializeStore.sql#L13 . How would I do that from the client side? Only thing I can think of is some sort of counter that a client can 'take' x number of "ordinals"
from sqlstreamstore.
Not from the client side, but inside the store/the script. Identity columns have been "replaced" by sequences in sql server anyway. Try it in Azure, you'll see the holes appear ...
from sqlstreamstore.
SQL Server 2012 introduced support for the sequence object as an alternative to the identity column property for generating surrogate keys.
http://sqlmag.com/sql-server/sequence-and-identity-performance
Well aren't I out of date with sql server.
I want to support 2008(R2) though, does this look viable? https://blogs.msdn.microsoft.com/askjay/2012/10/08/sequence-objects-in-sql-2012-and-sql-2008/
from sqlstreamstore.
I have provided a fairly simple fix in PR #20. It has been over 10 years since I wore a SQL hat, so would appreciate the criticism if it is not appropriate.
from sqlstreamstore.
Related Issues (20)
- 308 cycle redirect when using StreamResource
- When checking schema version on an blank db, capture the exception and return in the check result instead of throwing.
- ListStreams guidance HOT 2
- Trouble upgrading from 1.1.3 to 1.2.0-beta.8 HOT 3
- Threading/Deadlock/Concurrency Issue? HOT 8
- SqlException while polling eventstore HOT 1
- GetSchemaCreationScript() should include schema (namespace) creation
- PostgreSQL > Slow subscribe when having a lot of streams HOT 9
- Performance issue when ReadingAllForwards on MySql HOT 2
- Replace .NotOnCapturedContext(); with standard .ConfigureAwait(false);
- Concurrent appends to same stream and ExpectedVersion.Any on Postgres throws WrongExpectedVersion HOT 3
- Endless polling loop?
- Slack link broken HOT 2
- Change latest release to 1.2.0 on right-side panel
- Still maintained? HOT 6
- async issues with Microsoft.data.sqlclient HOT 1
- Allows for domain events to exist in multiple streams user created ? HOT 1
- ReadStreamForwards times out for long streams [MS SqlServer]
- Concurrency issue in MsSqlStreamStore.AppendStream
- Add WITH (ONLINE=ON) to MS SQL indexes creation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlstreamstore.