Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. AggregatorSegments
  2.  
  3. Step 1.1
  4. $match: '_id', 'user_id', '_update'
  5.  
  6. Step 1.2
  7. $match: '_update', '_id', 'user_id', 'event_type'
  8.  
  9. Step 1.3
  10. $match: '_update', '_id', 'user_id', 'event_type'
  11.  
  12. Step 1.4
  13. $match: '_update', '_id', 'user_id', 'event_type'
  14.  
  15. Step 1.5
  16. $match: '_update', '_id', 'user_id', 'event_type'
  17.  
  18.  
  19. Step 1.6
  20. $match: '_update', '_id', 'user_id', 'event_type'
  21.  
  22. Finish aggregator aggregate
  23.  
  24.  
  25. Puzzle segments
  26.  
  27. Step 2.1
  28. $match: 'user_id', '_id', '_update'
  29.  
  30. Step 2.2
  31. $match: '_update', '_id', 'user_id', 'event_type'
  32.  
  33. Step 2.3
  34. $match: 'boosts_used', 'moves_bought', '_update', '_id', 'user_id', 'event_type'
  35.  
  36. Step 2.4
  37. $match: '_update', '_id', 'user_id', 'event_type'
  38.  
  39. Step 2.5
  40. $match: '_update', '_id', 'user_id', 'event_type'
  41.  
  42. Step 2.6
  43. $match: '_update', '_id', 'user_id', 'event_type'
  44.  
  45. Step 2.7
  46. $match: '_update', '_id', 'user_id', 'event_type'
  47.  
  48. Step 2.8
  49. $match: '_update', '_id', 'user_id', 'event_type'
  50.  
  51. Step 2.9
  52. $match: '_update', '_id', 'user_id', 'event_type'
  53.  
  54. Finish puzzle segments aggregate
  55.  
  56.  
  57. GridFS
  58.  
  59. Step 1 Level aggregator
  60.  
  61. Step 1.1
  62. $match: '_id', 'user_id'
  63.  
  64. Step 1.2
  65. $match: '_id', 'user_id'
  66.  
  67. Step 1.3
  68. $match: '_id', 'user_id'
  69.  
  70.  
  71. Step 2 Apps aggregator
  72.  
  73. Step 2.1
  74. $match: '_id', 'user_id'
  75.  
  76. Step 2.2
  77. $match: '_id', 'user_id'
  78.  
  79. Step 2.3
  80. $match: '_id', 'user_id'
  81.  
  82.  
  83. Step 3 Paying aggregator
  84.  
  85. Step 3.1
  86. $match: '_id', 'user_id', 'event_type'
  87.  
  88. Step 3.2
  89. $match: '_id', 'user_id', 'event_type'
  90.  
  91. Step 3.3
  92. $match: '_id', 'user_id', 'event_type'
  93.  
  94.  
  95. Step 4 Virality aggregator
  96.  
  97. daily_tasks_segments.py, [LINE:216], 2015-01-28 16:36:10,878, DEBUG:
  98. Step 4.1
  99. $match: '_id', 'user_id', 'event_type'
  100.  
  101. Step 4.2
  102. $match: '_id', 'user_id', 'event_type'
  103.  
  104. Step 4.3
  105. $match: '_id', 'user_id', 'event_type'
  106.  
  107.  
  108. Step 6 Moves bought aggregator
  109.  
  110. Step 6.1
  111. $match: 'moves_bought', '_id', 'user_id', 'event_type'
  112.  
  113. Step 6.2
  114. $match: 'moves_bought', '_id', 'user_id', 'event_type'
  115.  
  116. Step 6.3
  117. $match: 'moves_bought', '_id', 'user_id', 'event_type'
  118.  
  119.  
  120. Step 7 Boosts used aggregator
  121.  
  122. Step 7.1
  123. $match: 'boosts_used', '_id', 'user_id', 'event_type'
  124. $match: 'event_type', '_id', 'user_id'
  125.  
  126. selector.py, [LINE:184], 2015-01-28 16:36:10,934, DEBUG: [{'$match': {'$or': [{'boosts_used': {'$gte': 1}}, {'event_type': 'BoostUsedEvent'}], '_id': {'$gte': ObjectId('54790c800000000000000000'), '$lt': ObjectId('547a5e000000000000000000')}, 'user_id': {'$in': ['1', '2', '3']}, 'event_type': {'$in': ['LevelAttemptedEvent', 'BoostUsedEvent']}}}, {'$project': {'user_id': 1, 'event_type': 1, 'timestamp': 1, 'app_id': 1, 'platform': 1, 'level_number': 1, '_id': 1}}, {'$group': {'_count': {'$sum': 1}, '_id': {'app_id': '$app_id', 'month': {'$month': '$timestamp'}, 'platform': '$platform', 'level_number': '$level_number', 'year': {'$year': '$timestamp'}, 'day': {'$dayOfMonth': '$timestamp'}}, 'user_id': {'$push': '$user_id'}}}]
  127.  
  128. Step 7.2
  129. $match: 'boosts_used', '_id', 'user_id', 'event_type'
  130. $match: 'event_type', '_id', 'user_id'
  131.  
  132. Step 7.3
  133. $match: 'boosts_used', '_id', 'user_id', 'event_type'
  134. $match: 'event_type', '_id', 'user_id'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement