My Visual Studio inellisense stopped working after removed ReSharper(ReSharper is so slow).
The solution:
Tools->Options->Text Editor->All Languages->General
Turn off "Auto list members", and "Parameter information"
And turn on again.
Monday, February 23, 2015
Friday, February 20, 2015
How to get stream name list from Event Store?
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/
How to count event number in one stream?
fromStream("streamName")
.when({
$init: function() {
return { count: 0 }
},
$any : function(s,e) { return s + 1;}
})
.when({
$init: function() {
return { count: 0 }
},
$any : function(s,e) { return s + 1;}
})
How to count event number in Event Store?
fromAll().
when({
$init: function(s,e) { return 0;},
$any : function(s,e) { return s + 1;}
})
when({
$init: function(s,e) { return 0;},
$any : function(s,e) { return s + 1;}
})
Thursday, February 19, 2015
How to solve problem: customized projection is not running in Event Store
The defualt setting is --run-projections=SYSTEM
Need to change
--run-projections=ALL
Reference:
https://github.com/EventStore/EventStore/wiki/Command-Line-Arguments
Need to change
--run-projections=ALL
Reference:
https://github.com/EventStore/EventStore/wiki/Command-Line-Arguments
Subscribe to:
Posts (Atom)
