-
Type: Task
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Atlas Streams
-
Sprint 55
let name = "testTop1000WordsInWikipediaComments"
sp.createStreamProcessor("testTop1000WordsInWikipediaComments", [
{ $source:
},
{ $project : { comment_words : { $split: ["$parsedcomment", " "] }} },
{ $unwind : "$comment_words" },
{ $hoppingWindow: {
interval:
,
hopSize: { size: 1, unit: 'second' },
pipeline: [
{$group: {
_id: '$comment_words',
count: { '$count': {} }
}},
{$sort: {
count: -1
}},
{$limit: 1000},
{$group: {
_id: null,
out: { $push: { word: "$_id", count: "$count" }}
}},
]
}},
{ $emit:
}
])
sp[name].start()
- duplicates
-
SERVER-85861 ExceededMemoryLimit thrown when closing windows with 4GB of state
- In Progress