SlideShare a Scribd company logo
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
http://www.slideshare.net/doryokujin/mongodb-uimongodb
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
ScientificPython
MongoDBで作るソーシャルデータ新解析基盤
// 11/10                       TOP10
> db.user_charge.find({date:"2010-11-10"})
   .sort({totalCharge:-1}).limit(10).forEach(printjson)
{
    "_id" : "2010-11-10+7777+Charge",
    "date" : "2010-11-10",
    "lastUpdate" : "2010-11-10",
    "totalCharge" : 10000,
    "userId" : ”7777",
    "actionType" : "Charge",
    "boughtItem" : {
        "        EX" : 13,
           "   +6000" : 3,
           "      PRO" : 20
      }
}{…
> db.daily_charge.find({date:"2010-11-10",T:"all"})
  .limit(10).forEach(printjson)
{
    "_id" : "2010-11-10+group+Charge+all+all",
    "date" : "2010-11-10",
    "total" : 100000,
    "UU" : 2000,
    "group" : {
       "              " : 1000000,
          "   " : 1000000,
    ...
    },
    "boughtItemNum" : {
        "       EX" : 8,
          "       " : 730,
    ...
    },
    "boughtItem" : {
        "       EX" : 10000,
          "       " : 100000,
    ...
> db.user_trace.find({date:"2010-11-10”,actionType:
    "a{Make}",userId:”7777"}).limit(10).forEach(printjson)
{
      "_id" : "2010-11-10+7777+a{Make}",
      "date" : "2010-11-10"
      "lastUpdate" : "2010-11-11",
      "userId" : ”7777",
      "actionType" : "a{Make}",
      "actionDetail" : {
          "make item ksutera" : 3,
          "make item makaron" : 1,
          "make item huwahuwamimiate" : 1,
          "make item ringoame" : 3,
          …
      }
}
> db.daily_trace.find(
    {date:{$gte:"2010-11-10”,$lte:”2010-11-20”},actionType:"a{Make}"}
  ).limit(10).forEach(printjson)
{
    "_id" : "2010-11-10+group+a{Make}",
    "date" : "2010-11-10",
    "lastUpdate" : "2010-11-12",
    "actionType" : "a{Make}",
    "actionDetail" : {
        "make item kinnokarakuridokei" : 615,

        "make   item   banjo-" : 377,
        "make   item   itigoke-ki" : 135904,
        "make   item   wadaikoan" : 40,
        "make   item   ha-pu" : 11,

        ...

    },...
}
> db.user_registration.find({userId:”7777"}).forEach(printjson)
{
    "_id" : "2010-06-29+7777+Registration",
    "userId" : “7777"
    "actionType" : "Registration",
    "category" : {
        R1” : “True”, #   1                       = True
         “T” : “ll”   #
         …
    },
    “tag”:[“longTerm”,”highFreq”], #
    “firstCharge” : “2010-07-07”, #
    “lastLogin” : “2010-09-30”, #
    “playTerm” : 94, #
    “totalCumlativeCharge” : 50000, #
    “totalMonthCharge” : 10000, #      1
    …
}
> var cross = new Cross()      //
//          ×

> MCResign = cross.calc(“2010-10-08”,“MC”,1)
   /          0 (z) ~1000 (s) ~10000 (m) 10000   ~(l)

~1   (z)        50000    10          5    0         50015

~1    (s)        50000   100         50   3         50153
~1    (m)       100000   200        100   1         100301

~3    (l)       100000   300         50   6         100356

3    ~(ll)           0     0          0   0             0

//          ×

> MCNotResign = cross.calc("2010-10-08","MC",-1)
   /        0 (z) ~1000 (s) ~10000 (m) 10000 ~(l)


~1   (z)        50000    10          5    0         50015

…
//

> access = getAccessData(“tutorial”,“2010-12-01”)
     UU   PATH
10000 /playshop2-gree/tutorial/FirstTopPage
 9500 /playshop2-gree/tutorial/Tutorial01Page
 8000 /playshop2-gree/tutorial/Tutorial02Page
 7700 /playshop2-gree/tutorial/Tutorial03Page
 7000 /playshop2-gree/tutorial/Tutorial04Page
 4000 /playshop2-gree/tutorial/make/avatar
 3800 /playshop2-gree/tutorial/Tutorial05Page
 …
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
http://www.slideshare.net/doryokujin/mongo-sharding
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
[08/May/2011:04:35:11 +0900]
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
db.collection.find(
 {date:20110517,
   userId:”1234”}
);
db.collection.insert(
 {hour:0,
   userId:”1234”,
   actionType:”login”,}
);
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤

More Related Content

PDF
MongoDB全機能解説2
PDF
MongoDB Oplog入門
PDF
はじめてのMongoDB
PDF
20110514 mongo dbチューニング
PDF
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
KEY
PostgreSQLからMongoDBへ
PDF
Inside MongoDB: the Internals of an Open-Source Database
PDF
MongoUK - PHP Development
MongoDB全機能解説2
MongoDB Oplog入門
はじめてのMongoDB
20110514 mongo dbチューニング
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
PostgreSQLからMongoDBへ
Inside MongoDB: the Internals of an Open-Source Database
MongoUK - PHP Development

What's hot (20)

PDF
MongoDB dla administratora
TXT
Litebox
PDF
MySQL flexible schema and JSON for Internet of Things
PDF
MongoDB Europe 2016 - Enabling the Internet of Things at Proximus - Belgium's...
PPTX
Super Advanced Python –act1
ODP
Mongo db dla administratora
PDF
JavaSE7 Launch Event: Java7xGroovy
PDF
MongoDB Performance Debugging
PDF
Elm: give it a try
PDF
Mongodb workshop
PPTX
Operational Intelligence with MongoDB Webinar
KEY
Paris js extensions
PDF
MongoDB: Replication,Sharding,MapReduce
PDF
Google App Engine Developer - Day3
KEY
CouchDB on Android
PDF
The Ring programming language version 1.5.2 book - Part 52 of 181
PDF
The Ring programming language version 1.9 book - Part 53 of 210
PDF
Andreas Roth - GraphQL erfolgreich im Backend einsetzen
PPTX
MongoDB - Aggregation Pipeline
PDF
2016 gunma.web games-and-asm.js
MongoDB dla administratora
Litebox
MySQL flexible schema and JSON for Internet of Things
MongoDB Europe 2016 - Enabling the Internet of Things at Proximus - Belgium's...
Super Advanced Python –act1
Mongo db dla administratora
JavaSE7 Launch Event: Java7xGroovy
MongoDB Performance Debugging
Elm: give it a try
Mongodb workshop
Operational Intelligence with MongoDB Webinar
Paris js extensions
MongoDB: Replication,Sharding,MapReduce
Google App Engine Developer - Day3
CouchDB on Android
The Ring programming language version 1.5.2 book - Part 52 of 181
The Ring programming language version 1.9 book - Part 53 of 210
Andreas Roth - GraphQL erfolgreich im Backend einsetzen
MongoDB - Aggregation Pipeline
2016 gunma.web games-and-asm.js
Ad

Similar to MongoDBで作るソーシャルデータ新解析基盤 (20)

PDF
MongoDB With Style
PPT
jQuery Datatables With MongDb
PDF
Using a mobile phone as a therapist - Superweek 2018
PDF
MongoDB for Analytics
PDF
TXT
Books
PDF
Cycle.js: Functional and Reactive
PDF
elasticsearch - advanced features in practice
PPTX
Knockoutjs UG meeting presentation
PDF
NoSQL meets Microservices - Michael Hackstein
PDF
The Ring programming language version 1.10 book - Part 54 of 212
PDF
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
PDF
Refactoring to Macros with Clojure
PDF
NoSQL meets Microservices
PDF
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
PDF
Django
PPTX
Guava - Elements of Functional Programming
PDF
Drupal Mobile
KEY
Juicer javascript template engine
PDF
Elasticsearch in 15 Minutes
MongoDB With Style
jQuery Datatables With MongDb
Using a mobile phone as a therapist - Superweek 2018
MongoDB for Analytics
Books
Cycle.js: Functional and Reactive
elasticsearch - advanced features in practice
Knockoutjs UG meeting presentation
NoSQL meets Microservices - Michael Hackstein
The Ring programming language version 1.10 book - Part 54 of 212
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
Refactoring to Macros with Clojure
NoSQL meets Microservices
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
Django
Guava - Elements of Functional Programming
Drupal Mobile
Juicer javascript template engine
Elasticsearch in 15 Minutes
Ad

More from Takahiro Inoue (20)

PDF
Treasure Data × Wave Analytics EC Demo
PDF
トレジャーデータとtableau実現する自動レポーティング
PDF
Tableauが魅せる Data Visualization の世界
PDF
トレジャーデータのバッチクエリとアドホッククエリを理解する
PDF
20140708 オンラインゲームソリューション
PDF
トレジャーデータ流,データ分析の始め方
PDF
オンラインゲームソリューション@トレジャーデータ
PDF
事例で学ぶトレジャーデータ 20140612
PDF
トレジャーデータ株式会社について(for all Data_Enthusiast!!)
PDF
この Visualization がすごい2014 〜データ世界を彩るツール6選〜
PDF
Treasure Data Intro for Data Enthusiast!!
PDF
Hadoop and the Data Scientist
PDF
MongoDB: Intro & Application for Big Data
PDF
An Introduction to Fluent & MongoDB Plugins
PDF
An Introduction to Tinkerpop
PDF
An Introduction to Neo4j
PDF
The Definition of GraphDB
PDF
Large-Scale Graph Processing〜Introduction〜(完全版)
PDF
Large-Scale Graph Processing〜Introduction〜(LT版)
PDF
Advanced MongoDB #1
Treasure Data × Wave Analytics EC Demo
トレジャーデータとtableau実現する自動レポーティング
Tableauが魅せる Data Visualization の世界
トレジャーデータのバッチクエリとアドホッククエリを理解する
20140708 オンラインゲームソリューション
トレジャーデータ流,データ分析の始め方
オンラインゲームソリューション@トレジャーデータ
事例で学ぶトレジャーデータ 20140612
トレジャーデータ株式会社について(for all Data_Enthusiast!!)
この Visualization がすごい2014 〜データ世界を彩るツール6選〜
Treasure Data Intro for Data Enthusiast!!
Hadoop and the Data Scientist
MongoDB: Intro & Application for Big Data
An Introduction to Fluent & MongoDB Plugins
An Introduction to Tinkerpop
An Introduction to Neo4j
The Definition of GraphDB
Large-Scale Graph Processing〜Introduction〜(完全版)
Large-Scale Graph Processing〜Introduction〜(LT版)
Advanced MongoDB #1

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

MongoDBで作るソーシャルデータ新解析基盤

  • 14. // 11/10 TOP10 > db.user_charge.find({date:"2010-11-10"}) .sort({totalCharge:-1}).limit(10).forEach(printjson) { "_id" : "2010-11-10+7777+Charge", "date" : "2010-11-10", "lastUpdate" : "2010-11-10", "totalCharge" : 10000, "userId" : ”7777", "actionType" : "Charge", "boughtItem" : { " EX" : 13, " +6000" : 3, " PRO" : 20 } }{…
  • 15. > db.daily_charge.find({date:"2010-11-10",T:"all"}) .limit(10).forEach(printjson) { "_id" : "2010-11-10+group+Charge+all+all", "date" : "2010-11-10", "total" : 100000, "UU" : 2000, "group" : { " " : 1000000, " " : 1000000, ... }, "boughtItemNum" : { " EX" : 8, " " : 730, ... }, "boughtItem" : { " EX" : 10000, " " : 100000, ...
  • 16. > db.user_trace.find({date:"2010-11-10”,actionType: "a{Make}",userId:”7777"}).limit(10).forEach(printjson) { "_id" : "2010-11-10+7777+a{Make}", "date" : "2010-11-10" "lastUpdate" : "2010-11-11", "userId" : ”7777", "actionType" : "a{Make}", "actionDetail" : { "make item ksutera" : 3, "make item makaron" : 1, "make item huwahuwamimiate" : 1, "make item ringoame" : 3, … } }
  • 17. > db.daily_trace.find( {date:{$gte:"2010-11-10”,$lte:”2010-11-20”},actionType:"a{Make}"} ).limit(10).forEach(printjson) { "_id" : "2010-11-10+group+a{Make}", "date" : "2010-11-10", "lastUpdate" : "2010-11-12", "actionType" : "a{Make}", "actionDetail" : { "make item kinnokarakuridokei" : 615, "make item banjo-" : 377, "make item itigoke-ki" : 135904, "make item wadaikoan" : 40, "make item ha-pu" : 11, ... },... }
  • 18. > db.user_registration.find({userId:”7777"}).forEach(printjson) { "_id" : "2010-06-29+7777+Registration", "userId" : “7777" "actionType" : "Registration", "category" : { R1” : “True”, # 1 = True “T” : “ll” # … }, “tag”:[“longTerm”,”highFreq”], # “firstCharge” : “2010-07-07”, # “lastLogin” : “2010-09-30”, # “playTerm” : 94, # “totalCumlativeCharge” : 50000, # “totalMonthCharge” : 10000, # 1 … }
  • 19. > var cross = new Cross() // // × > MCResign = cross.calc(“2010-10-08”,“MC”,1) / 0 (z) ~1000 (s) ~10000 (m) 10000 ~(l) ~1 (z) 50000 10 5 0 50015 ~1 (s) 50000 100 50 3 50153 ~1 (m) 100000 200 100 1 100301 ~3 (l) 100000 300 50 6 100356 3 ~(ll) 0 0 0 0 0 // × > MCNotResign = cross.calc("2010-10-08","MC",-1) / 0 (z) ~1000 (s) ~10000 (m) 10000 ~(l) ~1 (z) 50000 10 5 0 50015 …
  • 20. // > access = getAccessData(“tutorial”,“2010-12-01”) UU PATH 10000 /playshop2-gree/tutorial/FirstTopPage 9500 /playshop2-gree/tutorial/Tutorial01Page 8000 /playshop2-gree/tutorial/Tutorial02Page 7700 /playshop2-gree/tutorial/Tutorial03Page 7000 /playshop2-gree/tutorial/Tutorial04Page 4000 /playshop2-gree/tutorial/make/avatar 3800 /playshop2-gree/tutorial/Tutorial05Page …
  • 62. db.collection.find( {date:20110517, userId:”1234”} );
  • 63. db.collection.insert( {hour:0, userId:”1234”, actionType:”login”,} );