Better idea from Greg Young
|
Feb 20 (3 days ago)
| |||
|
$streams? https://github.com/EventStore/ EventStore/blob/dev/src/ EventStore.Projections.Core/ Standard/IndexStreams.cs is the internal projection code. It must be enabled.
What will happe to your projection with 100m streams?
Original test code:
when({
$init: function(s,e) { return {streanList:"", count:0} },
$any : function(s,e) {
if (!s.streanList){
s.streanList =" ";
}
if (s.streanList.indexOf(e.streamId) < 0){
s.streanList = s.streanList + e.streamId +",";
s.count++;
}
}
})
Reference:
http://dbs-are-fn.com/2013/interview_greg_young_event_store/
No comments:
Post a Comment