MongoDB

Banco de Dados Orientado a Documentos

27 de Janeiro

1 - História dos Bancos de Dados

http://www.slideshare.net/jnunemaker/why-is-nosql-so-darn-popular

NoSQlL : Pick Two

http://blog.nahurst.com/visual-guide-to-nosql-systems

Cassandra, Redis, Neo4J

http://www.slideshare.net/jnunemaker/why-mongodb-is-awesome

NoSQL Survey

http://www.slideshare.net/heukirne/no-sql-systemsurvey

2 - Introdução ao MongoDB

http://www.youtube.com/watch?v=CvIr-2lMLsk

http://info.mongodb.com/rs/mongodb/images/MongoDB_Datasheet.pdf

http://info.mongodb.com/rs/mongodb/images/sql_to_mongo.pdf

Cases comerciais: http://www.mongodb.com/solutions

3 - Instalação do MongoDB 2.4

MongoD, Parameters

http://docs.mongodb.org/manual/reference/program/mongod/

MongoRestore, MongoDump, MongoExport, MongoImport

Database, Colletions

http://try.mongodb.org/

https://app.mongohq.com

user: henrique@gemeos.org

4 - Consultando Documentos

http://docs.mongodb.org/manual/tutorial/query-documents/

http://info.mongodb.com/rs/mongodb/images/mongodb_qrc_queries.pdf

Exercícios

Entendendo JSON e usando Queries no MongoDB

Acessar: app.mongohq.com

Na Collection posts

5 - Inserindo e Atualizando Documentos (MongoHQ)

http://docs.mongodb.org/manual/tutorial/insert-documents/

http://docs.mongodb.org/manual/tutorial/modify-documents/

28 de Janeiro

Exercícios

Entendendo JSON e usando Queries no MongoDB

Acessar: app.mongohq.com

Na Collection posts

6 - Mongo Shell

http://docs.mongodb.org/manual/administration/scripting/

7 - Permissões

http://docs.mongodb.org/manual/tutorial/add-user-to-database/

http://docs.mongodb.org/manual/reference/user-privileges/

http://docs.mongodb.org/manual/reference/privilege-documents/

8 - Indexes

http://docs.mongodb.org/manual/indexes/

http://docs.mongodb.org/manual/core/index-text/

http://info.mongodb.com/rs/mongodb/images/mongodb_qrc_indexing.pdf

9 - Administração e Otimização

http://docs.mongodb.org/manual/administration/

http://docs.mongodb.org/manual/administration/optimization/

http://docs.mongodb.org/manual/administration/backup/

29 de Janeiro

10 - Aggregation Framework

http://docs.mongodb.org/manual/aggregation/

mongoimport --host paulo.mongohq.com --port 10047 --db blogdb -u guest -p guest --collection zip --file zips.json

http://docs.mongodb.org/manual/tutorial/aggregation-zip-code-data-set/

http://media.mongodb.org/zips.json

http://docs.mongodb.org/manual/reference/command/nav-aggregation/

Exercícios

              Utilizando Aggregation Framework

Na Collection posts

Acessar: mongo.exe paulo.mongohq.com:10047/blogdb -u guest -p guest

        Correção dos exercícios: gist

11 - MongoDB Distribuído

http://www.mongodb.com/presentations/mongodb-sp-2012/big-blog-analysis

http://www.cumulogic.com/mongodb-as-a-service-on-cumulogic/

http://docs.mongodb.org/manual/sharding/

http://docs.mongodb.org/manual/core/sharded-cluster-architectures-production/

http://docs.mongodb.org/manual/replication/

http://docs.mongodb.org/manual/core/replica-set-architecture-geographically-distributed/

30 de Janeiro

 Utilizando Aggregation Framework

Acessar: mongo.exe paulo.mongohq.com:10047/blogdb -u guest -p guest

Na Collection products

12 - Paradigma Map/Reduce

http://www.mongodb.com/presentations/mongodb-sp-2012/big-blog-analysis

http://blog.cloudera.com/wp-content/uploads/2010/01/5-MapReduceAlgorithms.pdf

13 - Map/Reduce no MongoDB

http://docs.mongodb.org/manual/core/map-reduce/

http://docs.mongodb.org/manual/core/aggregation-pipeline/

db.posts.find().forEach(function(p){ p.textContent = p.content.replace(/<[^>]*>/g,"").replace(/\n/g,""); db.posts.save(p) });

Exercícios

              Utilizando Map/Reduce

Acessar: mongo.exe paulo.mongohq.com:10047/blogdb -u guest -p guest

Na Collection posts

Na Collection products

31 de Janeiro

14 - Exemplo de Aplicação em PHP (Cloud9)

http://blog.mongodb.org/post/24960636131/mongodb-for-the-php-mind-part-1

http://www.php.net/mongo/

http://www.php.net/manual/pt_BR/class.mongocollection.php

http://www.php.net/manual/pt_BR/mongocollection.aggregate.php

http://www.php.net/manual/pt_BR/mongodb.command.php

Exercícios

Criando aplicação PHP com MongoDB

Acessar: http:// c9.io , user: henrique@gemeos.org

Entrar no workspace MongoCPD e duplicar o arquivo hello-word.php com seu nome

Acessar o MongoHQ para acompanhar as alterações.

Referências

Resolução dos exercícios:

http://docs.mongodb.org/manual/ (Manual do MongoDB)

https://speakerdeck.com/u/mongodb (Slides sobre Funcionalidades do MongoDB)

https://education.mongodb.com/ (Cursos EAD de MongoDB)

http://www.mongovue.com/ (IDE Desktop para MongoDB)

http://getbootstrap.com/ (Template CSS)

http://jonathanhui.com/mongodb

http://www.mongodb.com/reference

http://info.mongodb.com/rs/mongodb/images/MongoDB_Architecture_Guide.pdf

http://info.mongodb.com/rs/mongodb/images/10gen-MongoDB_Operations_Best_Practices.pdf

http://cookbook.mongodb.org/

Ferramentas

http://www.mongodb.org/ , Banco de Dados orientado a Documentos

http://www.mongohq.com/home , Host de MongoDB

https://c9.io/ , IDE Online

https://mms.mongodb.com/ , Ferramenta de Monitoramento do MongoD