ããã¾ã£ã¦ããã®ä¸¦å忣å¦çãKafkaã®ããã¿ã§ãã§ããã®ï¼ Apache Kafkaã®æ©è½ãå©ç¨ããå¤§è¦æ¨¡ã¹ããªã¼ã ãã¼ã¿ã®ä¸¦å忣å¦ç
2015-04-07 æ®æ®µMySQL使ã£ã¦ãåãMongoDBã使ã£ã¦æ°ã¥ãããã¨2㤠ãã¯ããã¸ã¼ ããã°ã©ã Tweet ãã´è¦ã¦æ°ã¥ããã®ã§ããã MongoDBã®é æåã£ã¦å°æåãªãã§ããã ãããªãã¨ã¯ç½®ãã¨ãã¦ã æè¿mongoDBï¼å°æåã«å¤ããï½ï¼ãä½¿ãæ©ä¼ãããã¾ããã åãæ®æ®µè§¦ã£ã¦ããMySQLã¨éã£ã¦ã ã°ã°ã£ã¦ããã¾ãã¼æ å ±ãå°ãªããã§ãããã ã³ãã³ãã¨ãã¯å²ãã¨ããã®ã§ããã PHPã§ã®æä½ã¨ãã¯å°ãªãã£ãå°è±¡ã§ãã ããã§ä»åã¯ã PHPã§ã®æä½ mongoDBã®å¾©æ§ï¼ãªã¹ãã¢ï¼ ã®2ã¤ãåå¿é²ã¨ãã¦ãã¾ã¨ãã¦ãããã¨æãã¾ãã PHPã§ã«ã¼ãããã¦æ¤ç´¢ãã§ããªã ãããããã¨ã§ãâ â»ãµã³ãã«ã®ä¸é¨ã¯PHPã®å ¬å¼ããã¥ã¡ã³ãããæåãã¾ããã ã¤ã¾ããæ¤ç´¢å¤ï¼findã®æ¡ä»¶ï¼ã夿°ã«ãã¦ã«ã¼ããããã¨ãåºæ¥ãªãããã§ãã ã¾ããããããä½åãDBæ¥ç¶ããã«
from requests_oauthlib import OAuth1Session from requests.exceptions import ConnectionError, ReadTimeout, SSLError import json, datetime, time, pytz, re, sys,traceback, pymongo # from pymongo import Connection # Connection classã¯å»æ¢ãããã®ã§MongoClientã«å¤æ´ from pymongo import MongoClient from collections import defaultdict import numpy as np KEYS = { # èªåã®ã¢ã«ã¦ã³ãã§å ¥æãããã¼ãä¸è¨ã«è¨è¼ 'consumer_key':'**********',
å°å·ãã ã¡ã¼ã«ã§éã ããã¹ã HTML é»åæ¸ç± PDF ãã¦ã³ãã¼ã ããã¹ã é»åæ¸ç± PDF ã¯ãªããããè¨äºãMyãã¼ã¸ããèªããã¨ãã§ãã¾ã ãMongoDBãã¯NoSQLã®ä¸ã§ãããã¥ã¡ã³ãåNoSQLã«åé¡ããã¾ããMongoDBã¯ä»ã®NoSQLã¨åæ§ã«ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ï¼RDBMSï¼ã¨æ¯è¼ãã¦ããã¯ãã¼ã¿ãéæ§é ãã¼ã¿ã®å¦çã徿ã¨ãã£ãç¹å¾´ãããã¾ãããããã§ã¯ãããã£ãNoSQLã®ä¸è¬çãªç¹å¾´ã®ç´¹ä»ã¯å²æããä»ã®NoSQLã¨ã¯éãããã¥ã¡ã³ãåNoSQLãªãã§ã¯ã®ç¹å¾´ãããã¦MongoDBãªãã§ã¯ã®ç¹å¾´ãç´¹ä»ãã¾ãã ããã¥ã¡ã³ãåãªãã§ã¯ã®ç¹å¾´ ããã¥ã¡ã³ãåNoSQLã§ã¯ãã¼ã¿ã¨ãã¦é層åãã¼ã¿æ§é ã§ããJSONãæ±ãã¾ããå³1ã«RDBMSã®ãªã¬ã¼ã·ã§ãã«ãã¼ã¿æ§é ããã¼ããªã¥ã¼ã¹ãã¢ï¼KVSï¼ã®ãã¼ããªã¥ã¼ãã¼ã¿æ§é ãããã¥ã¡ã³ãåNoSQLã®JSO
MongoDB 3.0ã®æå¤§ã®ç¹é·ã¯ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³APIãæ¡ç¨ãããã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ãå ¥ãæ¿ãå¯è½ï¼ãã©ã¬ãã«ï¼ã«ãªã£ããã¨ã§ããMongoDB 3.0ããã¯æ°ããã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³WiredTigerãå°å ¥ããã¾ããã WiredTigerã¯å¾æ¥ã®ã¨ã³ã¸ã³ã«æ¯ã¹ã¦æ¸ãè¾¼ã¿æ§è½ã§7åãã10åã®ã¹ã«ã¼ãããæ§è½åä¸ãå®ç¾ãããã¥ã¡ã³ãã¬ãã«ã§ã®ä¸¦åæ§ãå®ç¾ãã¦ãã¾ããããã«ãã£ã¦å¤§éæ¸ãè¾¼ã¿ã®çºçããã¢ãã¤ã«ã¢ããªã±ã¼ã·ã§ã³ãã½ã¼ã·ã£ã«ã¢ããªã±ã¼ã·ã§ã³ãIoTï¼Internet of Thingsï¼ãªã©ã®ããã¯ã¨ã³ãã§å¾æ¥ä»¥ä¸ã«æ§è½ãçºæ®ã§ããããã«ãªã£ãã¨ã®ãã¨ã ã¾ããã¼ã¿ã®å§ç¸®æ©è½ãæè¼ãããã¨ã«ãããæå¤§80ï¼ ä»¥ä¸ã®ãã¼ã¿å®¹éã忏ã§ããããã«ãªãã¾ãããã¢ããªã±ã¼ã·ã§ã³ã®è¦æ±ã«ãããã¦å§ç¸®çã¨æ§è½ã®é©åãªãã©ã³ã¹ãã¨ãããã®å§ç¸®ã¢ã«ã´ãªãºã ã®é¸æãå¯è½ã å°ç¨ç®¡çãã¼ã«ã®O
MongoDBã使ãã·ã¹ãã ããæè¿å¤ãã¨æãã¾ãã 2.6ç³»(å®å®ç)ã®ææ°2.6.7ã§ãããDateåã®ã¤ã³ãã¼ãå¦çã«ãã°ãããããã§ãã ã1970/01/01ã以åã® Dateå ã mongoexport ããã¨ãè² ã® "$numberLong" ã¨ãã¦åºåãããã®ã§ãããããã mongoimport ããã¨ããã以éã®ãã£ã¼ã«ããæ¬ è½ãã¦ãã¾ãã®ã§ãã ä¾ãã°ãã¦ã¼ã¶ãã¹ã¿ã«ãèªçæ¥ããã£ã¼ã«ããããã¨ã45æ³ä»¥ä¸ã®äººã¯ã1970/01/01ã以åã®å¤ãå ¥ã£ã¦ããããã§ããã¹ã¿ãã¼ã¿ãç§»è¡ãããã§ãããã¨ããã®äººã®ãã£ã¼ã«ããã¬ãããªç¡ããªã£ã¦ãã¾ãã¾ããã§ãè¥æã¯å¤§ä¸å¤«ã ãããã©ããé¨é·ã®ä½¿ãæ¹ããããããã§ããwwwãã¨ãããã¤ãã®ãåã人ã«éã£ã¦é害ãçºçããããã¿ã¼ã³ãå±éããã¾ãã 大æ¥ãã§èª¿ã¹ãæã以ä¸ã夿ãã¾ããã 2.6å½¢å¼
ã¯ããã« ååãããããããNode.jsã使ã£ãWebã¢ããªã±ã¼ã·ã§ã³ã使ãã¯ããã¾ãããååã¯ãã¼ã¿ãä¿åããã³èªã¿åºãå¦çããªãã£ãã®ã§ãä»åã¯ãã¼ã¿ãã¼ã¹ã¨ã®é£æºãå®è£ ãããã¨æãã¾ãã使ãã®ã¯MongoDBã§ãããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã«å¯¾ãã¦ãMongoDBã¯ããã¥ã¡ã³ãæåãã¼ã¿ãã¼ã¹ã¨ããä½ç½®ã¥ãã§ããJSONæ§é ããã®ã¾ã¾ä¿åã§ãããããNode.jsã¨ã®è¦ªåæ§ãé«ãã§ããç°¡åã«å°å ¥ã§ããæ¥æ¬èªããã¥ã¡ã³ããããã®ã§ãåãã¦ã§ããããªã使ããã¨æãã¾ãã MongoDBã®ã»ããã¢ãã MongoDBã®ãµã¤ããããOSãã¨ã«ç¨æãããã¢ã¼ã«ã¤ãããã¦ã³ãã¼ããã¦å±éãã¦ãã ãããå±éãããã©ã«ãã®ç´ä¸ã«ããbinãã£ã¬ã¯ããªå ã«ã³ãã³ã群ãããããããããã使ã£ã¦æä½ãã¾ãããµã¼ããã¼ã¢ã³ã¨ãªãã®ãmongodã§ãã¯ã©ã¤ã¢ã³ãã¨ãªãã®ãmongoã«ãªãã¾ãã ã¾ãé©å½ã«
é£è¼ç®æ¬¡ ååããå§ã¾ã£ããMEANã¹ã¿ãã¯ã§å§ããWebã¢ããªéçºå ¥éãã§ããã第1åããLAMPã«ä»£ããæ§æã¨ãã¦æ³¨ç®ã®MEANã¹ã¿ãã¯ã®åºç¤ç¥èã¨ã¤ã³ã¹ãã¼ã«ãã²ãªå使ãã§ã¯ãMEANã¹ã¿ãã¯ã®æ¦è¦ã«ã¤ãã¦èª¬æã¨ã»ããã¢ããããµã³ãã«ã¢ããªã®ä½æãéãã¦æåã®MEANã¹ã¿ãã¯ã¢ããªã«è§¦ãã¦ã¿ã¾ããã ä»åããã¯MEANã¹ã¿ãã¯ã®åæ§æè¦ç´ ã«ã¤ãã¦ããå°ã詳細ãªè§£èª¬ããã¦ããã¾ãã第2åã¨ãªãæ¬è¨äºã§ã¯ãMEANã¹ã¿ãã¯ã®ä¸å¿ã¨ãªãæè¡ãNode.jsã«ã¤ãã¦åºæ¬çãªé¨åãã¤ã³ã¹ãã¼ã«æ¹æ³ããã®å¨è¾ºãã¼ã«ãç´¹ä»ãã¦ããã¾ãã ãµã¼ãã¼ãµã¤ãJavaScriptã®å®è¡ç°å¢ãNode.jsãã¨ã¯ ååãå°ã説æãã¾ããããNode.jsã¨ã¯ãµã¼ãã¼ãµã¤ãJavaScriptã®å®è¡ç°å¢ã§ãã2009å¹´ã«Ryan Dahlæ°ã«ãã£ã¦éçºãããGoogle Chromeç¨JavaScriptå®
MongoDBãExpressãAngularJSãNode.jsã§æ§æãããMEANã¹ã¿ãã¯ãç¨ããWebã¢ããªã®éçºæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¦ããé£è¼ã MEANã¹ã¿ãã¯ã§å§ããWebã¢ããªéçºå ¥éï¼çµï¼ï¼ AngularJSã¦ã¼ã¶ã¼ã®ããã®Angular2è¶ å ¥é MEANã¹ã¿ãã¯ãç¨ããWebã¢ããªã®éçºæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¦ããæ¬é£è¼ãä»åã¯ãååã«ã¹ã¿ã ãã£ã¬ã¯ãã£ãã§è§£èª¬ããããªãã£ãå 容ã¨ãæè¿ãªãªã¼ã¹ãããAngular2ãç´¹ä»ãã¾ããï¼2016/11/17ï¼ MEANã¹ã¿ãã¯ã§å§ããWebã¢ããªéçºå ¥éï¼10ï¼ï¼ AngularJSã使ãããªããªã絶対ã«ç¥ã£ã¦ãããããã£ã«ã¿ã¨ã«ã¹ã¿ã ãã£ã¬ã¯ãã£ãã®åºæ¬ MEANã¹ã¿ãã¯ãç¨ããWebã¢ããªã®éçºæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¦ããæ¬é£è¼ãä»åã¯ãAngularJSã§ããã使ç¨ããæ©è½ã§ãããã£ã«ã¿ã®ä½¿ãæ¹ã¨ãã®ã«ã¹ã¿ãã¤ãºæ¹æ³ãããã¦ãç¬
ã¯ããã« ååã¾ã§ã§ãNode.jsã«ããç°¡åãªWebã¢ããªã±ã¼ã·ã§ã³ãä¸éã宿ãã¾ãããä»åã¯ãã®æ§ç¯ããã¢ããªã±ã¼ã·ã§ã³ããã¯ã©ã¦ããã¼ã¹ã®ã¢ããªã±ã¼ã·ã§ã³ãã¹ãã£ã³ã°ãµã¼ãã¹ã§ããHerokuä¸ã§ãåããã¦ã¿ããã¨æãã¾ããHerokuã¯Node.js以å¤ã«ãJava, Ruby, Pythonãªã©ã®ã¢ããªã±ã¼ã·ã§ã³ããããã¤ãããã¨ãã§ãã¾ãã Herokuã®ã»ããã¢ãã ã¾ããHerokuã®ãµã¤ãããããâ Sign upããã¿ã³ããã¢ã«ã¦ã³ããç»é²ãã¦ãã ããã å³1ãHerokuã®ãµã¤ã ããã«ãheroku toolbeltã¨ããHerokuç¨ã³ãã³ãã©ã¤ã³ãã¼ã«ãéçºããã³ãããã¤ã«ä½¿ãã¢ããªã±ã¼ã·ã§ã³ä¸å¼ãæä¾ããã¦ãã¾ãããã¡ããåã ã®ç°å¢ã«åããã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«ãçµãã£ãããã³ãã³ãã©ã¤ã³ããherokuã«å¯¾ããèªè¨¼å¦çãè¡ã£ã¦ããã¾ãããã $
NoSQLãã¼ã¿ãã¼ã¹ã®1ã¤ã§ããã¥ã¡ã³ãæåãã¼ã¿ãã¼ã¹ã¨ãã¦ç¥ãããMongoDBãã髿§è½ã®ãã¼ã¿ãã¼ã¹ã¨ã³ã¸ã³ãæä¾ããWiredTigerã®è²·åãçºè¡¨ãã¾ããã WiredTigerã¯ãã«ãã³ã¢ã¨ã¡ã¢ãªãæ´»ç¨ãããã¨ã§é«ã䏦忧ã«ããã¹ã±ã¼ã©ããªãã£ã¨é«æ§è½ã追æ±ãããã¼ã¿ãã¼ã¹ã¨ã³ã¸ã³ãå®å®ãã¦ä½ãã¬ã¤ãã³ã·ã¼ã¨é«ãã¹ã«ã¼ããããå®ç¾ããã¨èª¬æããã¦ãã¾ãã éçºãã¼ã ã¯ããã¼ããªã¥ã¼åãã¼ã¿ãã¼ã¹ã¨ãã¦åºãç¥ãããBerkeley DBã®ã¢ã¼ããã¯ãã ã£ãã¨ã³ã¸ãã¢éã Their latest effort, WiredTiger, is an open source storage engine that powers many high-performance systems, including services at Amazon. WiredTiger lever
3æ1æ¥ããâ MongoDB Conference in Japanãï¼â éç§°ãmongotokyoï¼ãéå¬ããã¾ãããæ¬ç¨¿ã§ã¯ãæ¥æ¬ã¦ã¼ã¶ã¼ã°ã«ã¼ããMongoDB JPãã®ä»£è¡¨ããããã¦ããã ãã¦ããçè ãããã¤ãã³ãã¬ãã¼ãããå±ããã¾ãã MongoDB Conferenceã¨ã¯ MongoDB Conferenceã¯ãéçºå ã§ãã10genã主å¬ãã¦ããå½éã«ã³ãã¡ã¬ã³ã¹ã§ãã10genã®ã¨ã³ã¸ãã¢ãä¸çåå°ã¸é£ã³åããç¾å°ã®MongoDBã¦ã¼ã¶ã¼ã¨è¤æ°ã®çºè¡¨ã»ãã·ã§ã³ãéãã¦äº¤æµãè¡ããé常ã«ã¨ããµã¤ãã£ã³ã°ãªå¬ãã§ãã ãã®Conferenceã¯ä»ã¾ã§ã¢ã¡ãªã«ãã¨ã¼ããããä¸å¿ã«è¡ããã¦ãã¾ããããããã¾ã§ã¢ã¸ã¢ã§ã®éå¬ã¯ä¸åº¦ããªãç¶æ³ã§ãããã¨ããã®ãMongoDBèªèº«ãã¢ã¡ãªã«ã»ã¨ã¼ãããã§ççºçã«æ®åãã¦ããã®ã«å¯¾ãã¦ãæ¥æ¬ã§ã¯ããããèªç¥åº¦ãé«ã¾ã£ã¦ãã¦ã¯ãããã®ã®ã
ãã®è¡¨ã§ã¯è¨åãã¦ãã¾ããããConsistent Hashingãshardingã«ãã£ã¦åæ£ãããããã¨ããã®ã¯ãã¹ã¦ã®NoSQLãã¼ã¿ãã¼ã¹ãåãã¦ããç¹å¾´ã§ãããã æ¤è¨¼ç¨ãµã¼ãã®æºå ã§ã¯å®éã®ããã©ã¼ãã³ã¹ãæ¯è¼ãã¦ã¿ã¾ããããæ¯è¼ã®ããã10,000ä»¶ã®ãã¼ã¿ã®æ¸è¾¼ã¿/èªè¾¼ã¿ãè¡ãã¾ããå®è¡ã«ãããå種ãµã¼ããèµ·åãã¾ãã ãªã¹ã1ãæ¤è¨¼ç¨ãµã¼ãã®èµ·åã³ãã³ã # memcached memcached -u nobody -d # TokyoTyrant sudo ttserver -pid /var/ttserver/pid -dmn /var/ttserver/bench.tch # MongoDB mongod --dbpath ~/tmp/mongodb & # HBase sudo /etc/init.d/hadoop-0.20-namenode start su
ã¯ããã« ä»åã¯ããã¥ã¡ã³ãæååãã¼ã¿ãã¼ã¹ã®ä»£è¡¨ã¨ãã¦MongoDBãåãä¸ãã¾ããããã¥ã¡ã³ãæååãã¼ã¿ãã¼ã¹ã¯RDBMSã¨éã£ã¦ãã¹ãã¼ãï¼ãã¼ãã«å®ç¾©ï¼ãå¿ è¦ãªããã¨ã大ããªç¹å¾´ã§ãã ä»åãå©ç¨ããã³ã¼ããããã°ã©ã ã¯githubã«ç½®ãã¦ããã®ã§é©å®åç §ãã¦ãã ããã MongoDBã®ç¹å¾´ åã åãååã¨ç´¹ä»ããmemcachedãTokyoTyrantã¯åºæ¬çã«RDBMSã¨çµã¿åããã¦ããâ RDBMSã®å¼±ãé¨åãè£ããã¨ããä½¿ãæ¹ã§ããããããMongoDBã¯å°ãéã£ã¦ãã¦ãJOINãè¡ããªããã¨ã¨ãã©ã³ã¶ã¯ã·ã§ã³ããµãã¼ããã¦ããªããã¨ä»¥å¤ã¯ãã»ã¼RDBMSã¨åãããã«æ±ããã¨ãã§ããããããâ RDBMSã®ä»£æ¿ã¨ãã¦ä½¿ãããã¨ãå¯è½ã§ãã ä¸è¿°ããããã«MongoDBã¯RDBMSã¨éã£ã¦JOINã¯ã§ãã¾ãããã代ããã«åºæºã¨ãªããªãã¸ã§ã¯ãã«å¥ã®ãªãã¸ã§ã¯ãããããããe
Socket.IOã§ã»ã³ãµã¼ï¼MongoDBï½AngularJSã¢ããªéã®éä¿¡ãè¡ãï¼Arduinoã§å§ããWebæè¡è ã®ããã®IoTå ¥éï¼6ï¼ï¼1/3 ãã¼ã¸ï¼ å®¶é»ï½Webã¢ããªéã®åæ¹åéä¿¡ãSocket.IOã§è¡ãã¢ããªã«ã¤ãã¦ããµã¼ãã¼å´ã®Arduino飿ºãMongoDBã¸ã®ãã¼ã¿ä¿åãªã©ã¨ãã¯ã©ã¤ã¢ã³ãå´ã®AngularJSã«åãã¦åä½ã解説ãã¾ãã
ã¯ããã« ååã¾ã§ã¯ãNode.jsã«ã¤ãã¦ã®åºç¤çãªèª¬æããnpmã«ããããã±ã¼ã¸ç®¡çã¾ã§ãç´¹ä»ãã¦ãã¾ãããä»åãããããããNode.jsã使ã£ãWebã¢ããªã±ã¼ã·ã§ã³ãå®è£ ãã¦ããã¾ããåã åã«åç´ãªHTTPãµã¼ãã®å®è£ ã«ã¤ãã¦ã³ã¼ãã¨ã¨ãã«ç´¹ä»ãã¾ããããããã¿ãã¨ãããã¨ãããnodeãæä¾ããHTTPãµã¼ãã®æ©è½ã¯ãããã³ã«ã«æ²¿ã£ããã¼ã¬ãã«ãªãã®ã«ãªã£ã¦ãã¾ããä¾ãã°ããªã¯ã¨ã¹ããæ¥ããããã®URLãã¹ã«å¾ã£ãå¦çãå®è¡ããããã«ããªã¯ã¨ã¹ãURIã®è§£æããå®è£ ãã¦ãããªãã¦ã¯ãªãã¾ããããããã£ããã¨ãç°¡åã«å®ç¾©ãã¦å¦çãæ¸ããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãnodeã«ãåå¨ãã¾ããæ¬é£è¼ã§ã¯ããã®ä»£è¡¨æ ¼ã®Expressã使ã£ã¦å®è£ ãã¦ã¿ããã¨æãã¾ãã Expressã®ã¤ã³ã¹ãã¼ã« Expressï¼Express.jsã¨è¡¨è¨ããããã¨ãå¤ãï¼ã¯ãéå¸¸ã«æè»½ã«nod
ã¯ããã« æ¬è¨äºã§ã¯ãMongoDBã®ã¯ã¨ãªã解説ãã¾ããMongoDBã¯ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ï¼ä»¥ä¸"RDB"ã¨ç¥è¨ï¼ã§ã¯ãªããããSQLã¯ä½¿ç¨ã§ãã¾ããããã®ä»£ãããMongoDBç¹æã®ãMongoã¯ã¨ãªè¨èªããç¨ãã¾ããMongoã¯ã¨ãªè¨èªã®CRUDæä½ã«ã¤ãã¦ã¯å ¬å¼ããã¥ã¡ã³ãã«è©³ãã解説ãããã¾ãã æ¬è¨äºã®æ§æã¯ãæåã«Mongoã¯ã¨ãªè¨èªã®ç¹å¾´ã«ã¤ãã¦è§£èª¬ãã2ãã¼ã¸ç®ã§ã¯SQLã¨Mongoã¯ã¨ãªè¨èªã®æ¯è¼ãè¡ãã¾ãã3ãã¼ã¸ç®ã§ã¯ãMongoDBã¯ã¨ãªè¨èªã®ä½¿ãæ¹ã説æããæå¾ã«ãããã°ã©ãã³ã°è¨èªããã®å©ç¨ã®ä»æ¹ã®èª¬æã¨ãã¦ãRubyããã®å©ç¨ã説æãã¾ãã Mongoã¯ã¨ãªè¨èªã®ç¹å¾´ Mongoã¯ã¨ãªè¨èªã«ã¯ä»¥ä¸ã®ç¹å¾´ãããã¾ãã ã³ã¬ã¯ã·ã§ã³ã®åã¡ã½ãããç¨ãã¦CRUDæä½ããã¾ã ã¡ã½ããã®å¼æ°ã«ã¯JSONå½¢å¼ã®ãã¼ã¿ã渡ãã¾ã 夿°ã使ãã¾ã å¶å¾¡æ§é ã使ãã¾
æ¤ç´¢ã¨ã³ã¸ã³èªä½å ¥é ~æãåãããªããè¦æ¸¡ãæ¤ç´¢ã®èå°è£ ä½è :å±±ç° æµ©ä¹,æ«æ°¸ å¡çºå£²æ¥: 2014/09/25ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼ (ãã®è¨äºã§ç´¹ä»ãã¦ããã®ã¯TF-IDFã¨ãã®è¨ç®ããªãç°¡ç´ ãªãã®ã§ãã) ã¯ããã« Webãµã¼ãã¹ã®ããã°ã©ãã³ã°ã«å¿ è¦ãªãã¨ã®ã ãããã¯ãã¹ã¯ã¬ã¤ãã³ã°ã«å¦ãã - Line 1: Error: Invalid Blog('by Esehara' ) ãã®åâã®è¨äºãã¿ããã¾ãããã¯ãã¼ãªã³ã°ãã¹ã¯ã¬ã¤ãã³ã°ã¯ãè²ã ã¨å¿ç¨ãå¹ããããªã®ã§ãã£ããåå¼·ãããã Pythonã§ã¯Scrapyã¨ããæåãªã¯ãã¼ãªã³ã°ã»ã¹ã¯ã¬ã¤ãã³ã°ç¨ã®ã©ã¤ãã©ãªãããã¾ãããä»åã¯åå¼·ã¨ãã¦Scrapyã使ããã«å®è£ ãã¦ã¿ããæµãã¨ãã¦ã¯ä»¥ä¸ã®ã¨ãã Webã¯ãã¼ã©ã®æ§ç¯ Mecabã§æ¥æ¬èªã®å½¢æ ç´ è§£æ æ¤ç´¢ã¨ã³ã¸ã³ã®æ§ç¯ ãã¼ã¿ãMongoDBã«æ ¼ç´ Fl
第31åã«ç¶ãã¦ãä»åã¯MongoDBãRubyããä½¿ãæ¹æ³ããç´¹ä»ãã¾ãã MongoDBãRubyãã使ãããã®ã©ã¤ãã©ãª MongoDBãRubyãã使ãã«ã¯ã以ä¸ã®ã©ã¤ãã©ãªçãå©ç¨ããå¿ è¦ãããã¾ãã Ruby driver for MongoDB [GitHub, ãã¥ã¼ããªã¢ã«] RubyããMongoDBã使ãä¸ã§åºæ¬ã¨ãªãã®ããå ¬å¼ã®Rubyãã©ã¤ãã§ãã MongoDBã®ã»ã¼å ¨æ©è½ã«ã¢ã¯ã»ã¹ã§ãããããè¤éãªãã¨ããããã¨ãã«ã¯é ¼ãã«ãªãã§ããããå¾è¿°ããä»ã®ã©ã¤ãã©ãªãå é¨ã§ã¯ãã®ãã©ã¤ãã使ã£ã¦ãã¾ãã ããã¥ã¡ã³ãããªãã¸ã§ã¯ãã«ãããã³ã°ãã¦ActiveRecordã©ã¤ã¯ã«æ±ãããªãã¸ã§ã¯ããããã¼ã®æ©è½ãæä¾ããã©ã¤ãã©ãªãããã¾ããä»åã¯ä»£è¡¨çãªãã®ã2ã¤ãç´¹ä»ãã¾ãã MongoMapper [GitHub, ä½è ã«ããç´¹ä»] æ¯è¼çActiveRecor
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}