This document provides tips and tricks for using the MongoDB shell, including:
- The shell allows running Javascript and accessing MongoDB functions and objects
- It can be used for debugging queries, testing, and administration
- However, Javascript numbers and dates can be confusing to work with in the shell
- Functions like load(), runCommand(), getProfilingLevel() and forEach() provide useful shell capabilities
- The shell is generally slower than queries run directly on the server
The document discusses tips and tricks for using the MongoDB shell. It describes what the shell is, advantages like debugging queries and administration, and disadvantages like numbers and dates. It provides examples of shell commands and functions for tasks like loading scripts, running commands, profiling, and administration. It also discusses configuration options and ways to improve the shell experience like keyboard shortcuts and the .mongorc.js file.
The document discusses using the MongoDB shell for debugging, testing, and administration tasks. It notes some limitations of using JavaScript in the shell, such as number and date handling. It provides examples of common shell commands like insert, update, remove, loading scripts, running commands, and profiling. Useful shell functions are also demonstrated like printjson and forEach. The document concludes by showing how to print indexes, find the largest document, use cursors, define aliases, and work with DBRefs.
The document discusses MongoDB, a non-relational database that uses documents with a flexible schema rather than tables, and is well-suited for applications that need to store data in complex, nested structures. It provides an overview of key MongoDB concepts like collections, queries, indexing, updating documents, and aggregation capabilities. Examples are given of how MongoDB can be used for applications involving user profiles, blogs, and logging.
This document provides an overview of getting started with MongoDB and .NET in 30 minutes or less. It discusses challenges in modeling a dynamic database in a static language like .NET, and introduces the MongoDB C# driver API including connecting to a MongoDB server, performing basic CRUD operations on documents through collections, querying, sorting, and updating documents. Additional features like connection pooling, GridFS, MapReduce, and executing JavaScript on the server are also mentioned. The document concludes by pointing to resources for downloading MongoDB and the C# driver source code, as well as support forums.
Node.js is an asynchronous event-driven JavaScript runtime that aims to build scalable network applications. It uses an event loop model that keeps the process running and prevents blocking behavior, allowing non-blocking I/O operations. This makes Node well-suited for real-time applications that require two-way connections like chat, streaming, and web sockets. The document outlines Node's core components and capabilities like modules, child processes, HTTP and TCP servers, and its future potential like web workers and streams.
Node.js is a server-side JavaScript platform for building scalable network applications. It uses non-blocking I/O and event-driven architecture, which makes it very efficient for data-intensive real-time applications that run across distributed devices. Some key features of Node.js include CommonJS modules, child processes, HTTP servers, TCP servers, DNS lookups, file watching and a package management system. Popular applications built with Node.js include web frameworks, real-time applications, crawlers and streaming.
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It uses non-blocking I/O and event-driven architecture, making it suitable for real-time applications with many concurrent connections. Key features include a module system, asynchronous I/O bindings, common network protocols like HTTP and TCP/IP, and a streaming API. Addons allow extending Node.js with native code modules written in C/C++ for additional functionality.
This document provides an introduction to Node.js including its history, uses, advantages, and community. It describes how Node.js uses non-blocking I/O and JavaScript to enable highly scalable applications. Examples show how Node.js can run HTTP servers and handle streaming data faster than traditional blocking architectures. The document recommends Node.js for real-time web applications and advises against using it for hard real-time systems or CPU-intensive tasks. It encourages participation in the growing Node.js community on mailing lists and IRC.
Node.js is a platform for building scalable network applications. It uses Google's V8 JavaScript engine and a non-blocking I/O model. Some key points:
- Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, especially for real-time applications.
- It has a large ecosystem of open source modules. Popular frameworks include Express and Fab.
- While Node.js is very fast for I/O operations, memory usage can grow quickly and scaling to multiple cores requires multiple processes.
- The author argues Node.js is suitable for single-page apps, real-time applications, and crawlers, but
Node.js is a JavaScript runtime built on Chrome's V8 engine. It allows JavaScript to be run on the server-side. Node.js avoids blocking I/O operations by using non-blocking techniques and event loops. It provides APIs for common tasks like HTTP servers, filesystem access, and more. While still in development, Node.js has found success in building real-time applications and APIs due to its asynchronous and non-blocking architecture.
This document provides examples of using Redis data structures to solve common data modeling problems. It discusses using Redis lists to improve logging performance, hashes to track daily visitor counts, JSON to implement shopping carts, sets for tracking likes on posts, and bits to count unique daily visitors at scale. Pipelines, Lua scripting, and read replicas are proposed to further optimize some solutions.
In these slide following projects are presented:
* redis_wrap: A Pythonic wrapper that makes it nicer to work with builtin Redis datatypes
* redis_graph: A sample graph database
* redis_simple_queue: A simple queue implemented on Redis list structure
* bitmapist: a powerful analytics library using Redis bitmaps, great for retention and cohort tracking
* fixedlist: a fixed list structure that can optimize timelines (and other things)
* how to use Lua scripting for more advanced data structures and better performance
These are Python projects, but some of them (like bitmapist) have been ported to other languages.
This talk was given to PyCon Belarus on 31 Jan. 2015
- Node.js is a platform for building scalable network applications. It uses non-blocking I/O and event-driven architecture to handle many connections concurrently using a single-threaded event loop.
- Node.js uses Google's V8 JavaScript engine and provides a module system, I/O bindings, and common protocols to build network programs easily. Popular uses include real-time web applications, file uploading, and streaming.
- While Node.js is ready for many production uses, things like lost stack traces and limited ability to utilize multiple cores present challenges for some workloads. However, an active community provides support through mailing lists, IRC, and over 1,000 modules in its package manager.
Node.js in Production
- Felix Geisendörfer discusses his experience running Node.js in production environments over time with Transloadit, moving from early failures to a stable architecture running over 2TB of data without bugs. He covers lessons learned around hosting, deployment, monitoring, debugging, testing and load balancing Node.js applications at scale.
This document provides an overview and introduction to Node.js. It discusses that Node.js is a platform for building scalable network applications using JavaScript and uses non-blocking I/O and event-driven architecture. It was created by Ryan Dahl in 2009 and uses Google's V8 JavaScript engine. Node.js allows building web servers, networking tools and real-time applications easily and efficiently by handling concurrent connections without threads. Some popular frameworks and modules built on Node.js are also mentioned such as Express.js, Socket.IO and over 1600 modules in the npm registry.
Relational databases are central to web applications, but they have also been the primary source of pain when it comes to scale and performance. Recently, non-relational databases (also referred to as NoSQL) have arrived on the scene. This session explains not only what MongoDB is and how it works, but when and how to gain the most benefit.
This document discusses debugging and testing Elasticsearch systems. It provides tips for debugging issues like typos in mappings, setting up a local environment for testing, useful commands like analyze and explain, tuning queries, and testing strategies using Java and Ruby. The document emphasizes the importance of testing representative queries to ensure expected results and the ability to tune queries without breaking other queries. It also recommends using Elasticsearch plugins like Head for visualizing clusters and indices.
The document discusses MongoDB and how it works. It includes information on BSON, the wire protocol for messages like insert and query, the anatomy of an insert message, how MongoDB uses memory mapped storage, commands like drop, the query optimizer using indexes, issues with geohashing, replication using replica sets and oplogs, and auto-sharding using config and mongos servers.
This document provides an overview and instructions for installing and using Elasticsearch. It describes how Elasticsearch is schema-free, distributed, uses JSON documents and the Lucene search engine. It also provides examples of indexing, searching, and configuring documents in Elasticsearch including shards, replicas, node names and master/data nodes.
This document provides an overview of CouchDB, an open-source document-oriented NoSQL database that uses JSON for documents, JavaScript for querying and HTTP for an API. It discusses CouchDB's support for high availability, easy replication between clusters, flexible schemas using JSON documents, and its use of web technologies like HTTP, JavaScript and JSON. Views are used for querying and aggregating documents using JavaScript functions. The document also outlines CouchDB's support for clustering, load balancing, caching and multi-master replication.
- MongoDB is an open-source, high-performance, schema-free, document-oriented database. It bridges the gap between key-value stores and traditional relational databases.
- Documents in MongoDB are like JSON documents and can be dynamically updated without migrations. MongoDB supports aggregation, map-reduce functions, and rich queries.
- PyMongo is the Python driver for MongoDB. Documents can be easily inserted, queried, and manipulated from Python. Object-document mappers like MongoEngine allow defining schemas and models similarly to ORMs.
This document summarizes a presentation about Apache CouchDB. Some key points:
- CouchDB is a scalable, distributed key-value database that uses peer-to-peer replication. It has an append-only file structure and is designed to handle crashes well.
- Data is stored in JSON documents with dynamic schemas. Views are built using JavaScript map-reduce functions.
- The API is RESTful HTTP and works natively with the web. Data can be queried and rendered directly in the browser using JavaScript.
- CouchDB embraces web technologies and can scale from smartphones to server clusters. It is open source and embraces an open philosophy.
This is a short talk I gave on Apache CouchDB at GTALUG's September 2014 meeting http://gtalug.org/meeting/2014-09/
Antonio Scalzo documents his first experience using MongoDB, a NoSQL database, to improve the performance of localities search on his personal website. He was getting response times of 1500-2000ms from MySQL searches. He installed MongoDB on Ubuntu, imported the localities data, and was able to achieve response times of 0.01-0.02ms using MongoDB's regex search. He integrated MongoDB with his Symfony2 project using the DoctrineMongoDBBundle. The improved performance and flexibility of MongoDB made it a better solution than MySQL for this use case.
The document discusses MongoDB, a document-oriented NoSQL database. It provides an overview of MongoDB, explaining that it uses documents (rather than tables and rows), has dynamic schemas, and allows for easy horizontal scaling. It also covers some basic MongoDB concepts and operations like collections, embedded documents, and CRUD functions like insert, find, update, and remove.
This document discusses texture in art through analyzing several paintings and sculptures. It explains how texture gives objects definition and realism by making surfaces appear bumpy, wrinkled, smooth, etc. Texture allows viewers to imagine how something might feel even without touching it. The analyses show how different textures in clothing, skin, fur, and other materials enhance the works and convey important details about the time periods and subjects depicted.
The document discusses the greenhouse effect and how greenhouse gases like carbon dioxide and methane regulate the Earth's temperature. It explains that greenhouse gases in the atmosphere trap heat in a similar way that the glass walls of a greenhouse trap heat, keeping temperatures inside higher than outside temperatures. The greenhouse effect occurs when an increase in greenhouse gases leads to more heat being absorbed by the atmosphere and rising global temperatures.
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It uses non-blocking I/O and event-driven architecture, making it suitable for real-time applications with many concurrent connections. Key features include a module system, asynchronous I/O bindings, common network protocols like HTTP and TCP/IP, and a streaming API. Addons allow extending Node.js with native code modules written in C/C++ for additional functionality.
This document provides an introduction to Node.js including its history, uses, advantages, and community. It describes how Node.js uses non-blocking I/O and JavaScript to enable highly scalable applications. Examples show how Node.js can run HTTP servers and handle streaming data faster than traditional blocking architectures. The document recommends Node.js for real-time web applications and advises against using it for hard real-time systems or CPU-intensive tasks. It encourages participation in the growing Node.js community on mailing lists and IRC.
Node.js is a platform for building scalable network applications. It uses Google's V8 JavaScript engine and a non-blocking I/O model. Some key points:
- Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, especially for real-time applications.
- It has a large ecosystem of open source modules. Popular frameworks include Express and Fab.
- While Node.js is very fast for I/O operations, memory usage can grow quickly and scaling to multiple cores requires multiple processes.
- The author argues Node.js is suitable for single-page apps, real-time applications, and crawlers, but
Node.js is a JavaScript runtime built on Chrome's V8 engine. It allows JavaScript to be run on the server-side. Node.js avoids blocking I/O operations by using non-blocking techniques and event loops. It provides APIs for common tasks like HTTP servers, filesystem access, and more. While still in development, Node.js has found success in building real-time applications and APIs due to its asynchronous and non-blocking architecture.
This document provides examples of using Redis data structures to solve common data modeling problems. It discusses using Redis lists to improve logging performance, hashes to track daily visitor counts, JSON to implement shopping carts, sets for tracking likes on posts, and bits to count unique daily visitors at scale. Pipelines, Lua scripting, and read replicas are proposed to further optimize some solutions.
In these slide following projects are presented:
* redis_wrap: A Pythonic wrapper that makes it nicer to work with builtin Redis datatypes
* redis_graph: A sample graph database
* redis_simple_queue: A simple queue implemented on Redis list structure
* bitmapist: a powerful analytics library using Redis bitmaps, great for retention and cohort tracking
* fixedlist: a fixed list structure that can optimize timelines (and other things)
* how to use Lua scripting for more advanced data structures and better performance
These are Python projects, but some of them (like bitmapist) have been ported to other languages.
This talk was given to PyCon Belarus on 31 Jan. 2015
- Node.js is a platform for building scalable network applications. It uses non-blocking I/O and event-driven architecture to handle many connections concurrently using a single-threaded event loop.
- Node.js uses Google's V8 JavaScript engine and provides a module system, I/O bindings, and common protocols to build network programs easily. Popular uses include real-time web applications, file uploading, and streaming.
- While Node.js is ready for many production uses, things like lost stack traces and limited ability to utilize multiple cores present challenges for some workloads. However, an active community provides support through mailing lists, IRC, and over 1,000 modules in its package manager.
Node.js in Production
- Felix Geisendörfer discusses his experience running Node.js in production environments over time with Transloadit, moving from early failures to a stable architecture running over 2TB of data without bugs. He covers lessons learned around hosting, deployment, monitoring, debugging, testing and load balancing Node.js applications at scale.
This document provides an overview and introduction to Node.js. It discusses that Node.js is a platform for building scalable network applications using JavaScript and uses non-blocking I/O and event-driven architecture. It was created by Ryan Dahl in 2009 and uses Google's V8 JavaScript engine. Node.js allows building web servers, networking tools and real-time applications easily and efficiently by handling concurrent connections without threads. Some popular frameworks and modules built on Node.js are also mentioned such as Express.js, Socket.IO and over 1600 modules in the npm registry.
Relational databases are central to web applications, but they have also been the primary source of pain when it comes to scale and performance. Recently, non-relational databases (also referred to as NoSQL) have arrived on the scene. This session explains not only what MongoDB is and how it works, but when and how to gain the most benefit.
This document discusses debugging and testing Elasticsearch systems. It provides tips for debugging issues like typos in mappings, setting up a local environment for testing, useful commands like analyze and explain, tuning queries, and testing strategies using Java and Ruby. The document emphasizes the importance of testing representative queries to ensure expected results and the ability to tune queries without breaking other queries. It also recommends using Elasticsearch plugins like Head for visualizing clusters and indices.
The document discusses MongoDB and how it works. It includes information on BSON, the wire protocol for messages like insert and query, the anatomy of an insert message, how MongoDB uses memory mapped storage, commands like drop, the query optimizer using indexes, issues with geohashing, replication using replica sets and oplogs, and auto-sharding using config and mongos servers.
This document provides an overview and instructions for installing and using Elasticsearch. It describes how Elasticsearch is schema-free, distributed, uses JSON documents and the Lucene search engine. It also provides examples of indexing, searching, and configuring documents in Elasticsearch including shards, replicas, node names and master/data nodes.
This document provides an overview of CouchDB, an open-source document-oriented NoSQL database that uses JSON for documents, JavaScript for querying and HTTP for an API. It discusses CouchDB's support for high availability, easy replication between clusters, flexible schemas using JSON documents, and its use of web technologies like HTTP, JavaScript and JSON. Views are used for querying and aggregating documents using JavaScript functions. The document also outlines CouchDB's support for clustering, load balancing, caching and multi-master replication.
- MongoDB is an open-source, high-performance, schema-free, document-oriented database. It bridges the gap between key-value stores and traditional relational databases.
- Documents in MongoDB are like JSON documents and can be dynamically updated without migrations. MongoDB supports aggregation, map-reduce functions, and rich queries.
- PyMongo is the Python driver for MongoDB. Documents can be easily inserted, queried, and manipulated from Python. Object-document mappers like MongoEngine allow defining schemas and models similarly to ORMs.
This document summarizes a presentation about Apache CouchDB. Some key points:
- CouchDB is a scalable, distributed key-value database that uses peer-to-peer replication. It has an append-only file structure and is designed to handle crashes well.
- Data is stored in JSON documents with dynamic schemas. Views are built using JavaScript map-reduce functions.
- The API is RESTful HTTP and works natively with the web. Data can be queried and rendered directly in the browser using JavaScript.
- CouchDB embraces web technologies and can scale from smartphones to server clusters. It is open source and embraces an open philosophy.
This is a short talk I gave on Apache CouchDB at GTALUG's September 2014 meeting http://gtalug.org/meeting/2014-09/
Antonio Scalzo documents his first experience using MongoDB, a NoSQL database, to improve the performance of localities search on his personal website. He was getting response times of 1500-2000ms from MySQL searches. He installed MongoDB on Ubuntu, imported the localities data, and was able to achieve response times of 0.01-0.02ms using MongoDB's regex search. He integrated MongoDB with his Symfony2 project using the DoctrineMongoDBBundle. The improved performance and flexibility of MongoDB made it a better solution than MySQL for this use case.
The document discusses MongoDB, a document-oriented NoSQL database. It provides an overview of MongoDB, explaining that it uses documents (rather than tables and rows), has dynamic schemas, and allows for easy horizontal scaling. It also covers some basic MongoDB concepts and operations like collections, embedded documents, and CRUD functions like insert, find, update, and remove.
This document discusses texture in art through analyzing several paintings and sculptures. It explains how texture gives objects definition and realism by making surfaces appear bumpy, wrinkled, smooth, etc. Texture allows viewers to imagine how something might feel even without touching it. The analyses show how different textures in clothing, skin, fur, and other materials enhance the works and convey important details about the time periods and subjects depicted.
The document discusses the greenhouse effect and how greenhouse gases like carbon dioxide and methane regulate the Earth's temperature. It explains that greenhouse gases in the atmosphere trap heat in a similar way that the glass walls of a greenhouse trap heat, keeping temperatures inside higher than outside temperatures. The greenhouse effect occurs when an increase in greenhouse gases leads to more heat being absorbed by the atmosphere and rising global temperatures.
What is Social Media?Positive Effects/Advantages of Social Media,Negative effects/Disadvantages of Social Media,True research facts,Threats from Social Media,Prevention,Conclusion and Implication
For more information , visit : http://www.computercareer.in/projects-by-cc/
The document discusses diversity and its importance in education. It defines diversity as acceptance and respect of individuals' unique differences along dimensions such as race, gender, beliefs. Celebrating diversity empowers students and promotes their learning by strengthening their connection to the diverse environment. Intolerance stems from lack of familiarity, so schools can reduce it by teaching appropriate behaviors and having students interact from different backgrounds. Support programs also help, like reinforcing positive behaviors and providing intervention groups.
This document is Francis Fairley's resume, which outlines his diverse IT experience including roles in wholesale distribution, retail, and transportation. It details projects he has led such as a $21M Windows 7 upgrade project for over 35,000 customers and implementing HR, finance, and legal systems. The resume also notes his responsibilities helping teams succeed and deepening the practice of project management.
Este documento habla sobre la importancia de la privacidad y la seguridad en Internet. Explica que los usuarios deben proteger su información personal mediante contraseñas seguras y software antivirus, y tener cuidado con los sitios web fraudulentos. También menciona que las empresas deben implementar medidas estrictas para salvaguardar los datos de los clientes.
Volcanoes are formed when molten rock, or magma, flows out of the earth's surface through fissures caused by the movement of tectonic plates. Magma emerges onto the crust of the earth through vents in the asthenosphere. At the summit of a volcano is a crater, which is a funnel-shaped depression. Volcanoes are classified as active, extinct, or dormant based on their eruptive behavior - active volcanoes erupt frequently, extinct volcanoes will not erupt again, and dormant volcanoes were previously active but have not erupted recently but could again in the future.
This document provides information about financial institutions in India. It discusses that financial institutions were established based on common guidelines to make credit easily available to all. It then categorizes the main financial institutions as banks and non-banking financial institutions. Within banks, it outlines the types as commercial banks, cooperative banks, and other development banks. It provides further details on commercial banks, stating they are the oldest form that accepts deposits and lends money for commercial purposes.
Dokumen ini berisi menu sarapan pagi dan kudapan lain untuk hari Isnin hingga Jumaat, termasuk jenis makanan dan minuman seperti roti, nasi goreng, bihun goreng, sup, buah-buahan dan minuman seperti air, susu dan teh.
University Assignment Literacy Assessmentmforrester
Literacy is described as the ability to communicate effectively through reading, writing, speaking and listening. It allows people to make sense of messages in text, pictures, audio and other formats. Literacy is important for every subject as it is required to perform tasks and improve knowledge. Literacy assessments can help identify areas of concern, though not all are diagnostic. A literacy assessment may reflect issues across subjects depending on how it is designed. Suggestions to improve literacy include focusing more on literacy within subjects, using literacy circles to set goals, and allowing more time for exploring literacy in each subject.
This document provides an introduction to various data structures, including linear data structures (arrays, stacks, queues, linked lists), non-linear data structures (trees, graphs), and how they organize and store data. It discusses common terms related to data structures and includes examples of different array and linked list operations and programs. The document aims to explain fundamental concepts for understanding and implementing various data structures through programming languages like C/C++.
LM Catering Services specializes in providing excellent catering services for weddings, debuts, baptisms, corporate events and other special occasions. Their hallmark is top notch culinary excellence and service. Their vision is to be recognized as the top caterer by providing quality food and cordial service. They offer a variety of packages for events, rentals, and weddings, including staff, equipment, tables, chairs, decorations and more. Their mission is to help clients achieve their dream events and make their occasions memorable.
The document outlines an innovative lesson plan about double circulation. It includes the name of the teacher, school, subject, unit, topic, class details, learning objectives, and a proposed classroom procedure. The procedure involves introducing the topic of double circulation, showing animations depicting pulmonary and systemic circulation, engaging students in group discussions to answer related questions, reviewing key concepts, and assigning a follow up activity to create a flow chart of double circulation. The overall goal is for students to develop a factual and conceptual understanding of how blood circulates through the heart twice in what is called double circulation.
Kerajaan Kalingga didirikan oleh pengungsi dari India yang melarikan diri dari penghancuran daerah Kalingga. Ibukotanya dikelilingi pagar kayu dan dipimpin Ratu Shima yang terkenal adil pada abad ke-7. Keturunan Ratu Shima kemudian memimpin kerajaan-kerajaan lain seperti Galuh, Sunda, dan mendirikan Dinasti Sanjaya di Mataram Kuno.
Atomic Structure Powerpoint Presentation by Computer CareersYaman Singhania
Powerpoint Presentation on Atomic Structure by Computer Careers.What is an Atom?ATOMIC STRUCTURE,There are two ways to represent the atomic structure of n element or compound,DOT & CROSS DIAGRAMS and many more ....
This document provides an overview and introduction to MongoDB. It discusses what MongoDB is, how it compares to SQL databases, basic CRUD operations, and getting started steps like downloading, installing, and starting MongoDB. It also covers MongoDB concepts like documents, collections, queries and indexes. The document aims to help attendees understand MongoDB and includes several examples and promises a live demo.
Christian Kvalheim gave an introduction to NoSQL and MongoDB. Some key points:
1) MongoDB is a scalable, high-performance, open source NoSQL database that uses a document-oriented model.
2) It supports indexing, replication, auto-sharding for horizontal scaling, and querying.
3) Documents are stored in JSON-like records which can contain various data types including nested objects and arrays.
This document provides a gentle, friendly overview of MongoDB. It discusses that MongoDB is a document-oriented, non-relational database that uses JSON-like documents with dynamic schemas. It also covers MongoDB's query language, indexing, data storage and querying, drivers like PyMongo, and how MongoDB provides horizontal scalability through sharding and replication. The document concludes by noting some common use cases for MongoDB and areas it is less suited for.
MongoDB is an open source NoSQL database that uses JSON-like documents with dynamic schemas (BSON format) instead of using tables as in SQL. It allows for embedding related data and flexible querying of this embedded data. Some key features include using JavaScript-style documents, scaling horizontally on commodity hardware, and supporting various languages through its driver interface.
1) The document provides an overview of C++ for beginners, covering what C++ is, its evolution and features, object-oriented programming concepts, and how to get started with C++ classes.
2) It discusses key C++ concepts like classes, objects, inheritance, and memory management. Live code demonstrations are presented to illustrate class implementation in C++.
3) Resources for C++ compilers, local user groups, and additional reading materials are provided to help learners continue their study of C++ programming.
OSDC 2012 | Building a first application on MongoDB by Ross LawleyNETWAYS
MongoDB – from "humongous" – is an open source, non-relational, document-oriented database. Trading off a few traditional features of databases (notably joins and transactions) in order to achieve much better performance, MongoDB is fast, scalable, and designed for web development. The goal of the MongoDB project is to bridge the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality).
This talk will introduce the features of MongoDB by walking through how one can building a simple location-based application using MongoDB. The talk will cover the basics of MongoDB's document model, query language, map-reduce framework and deployment architecture.
The document describes MongoDB, an open-source, high-performance, schema-free, document-oriented database that addresses some shortcomings of relational databases like scalability and flexibility. It discusses some key MongoDB concepts like documents, collections, indexing, embedding data, and querying capabilities. An example blog application is provided to illustrate common operations like creating, retrieving, and counting documents in a MongoDB deployment using PyMongo.
This document discusses various indexing strategies in MongoDB to help scale applications. It covers the basics of indexes, including creating and tuning indexes. It also discusses different index types like geospatial indexes, text indexes, and how to use explain plans and profiling to evaluate queries. The document concludes with a section on scaling strategies like sharding to scale beyond a single server's resources.
MongoDB is an open-source, schema-free, document-oriented database that provides high performance, flexibility and scalability. It uses JSON-like documents with dynamic schemas, instead of the traditional table-based relational database structure. MongoDB is especially useful for web applications, caching, and scaling to handle large volumes of data. While it is less suited to highly transactional workloads or problems requiring SQL, MongoDB provides a simple interface and scales horizontally across commodity servers.
Introduction to Mongo DB-open-‐source, high-‐performance, document-‐orient...boychatmate1
This document summarizes MongoDB, an open-source document-oriented database. MongoDB is a non-relational database that uses flexible, JSON-like documents with optional schemas. It provides high performance, high availability, and automatic scaling. MongoDB is well suited for applications that need to store large amounts of dynamic data, like user data and session data for websites and mobile applications.
This document provides summaries of NoSQL databases MongoDB, ElasticSearch, and Couchbase. It discusses their key features and uses cases. MongoDB is a document-oriented database that stores data in JSON-like documents. ElasticSearch is a search engine and stores data in JSON documents for real-time search and analytics capabilities. Couchbase is a key-value store that provides high-performance access to data through caching and supports high concurrency.
Webinar: Building Your First Application with MongoDBMongoDB
This document discusses building a location-based check-in app using MongoDB. It begins with an introduction to MongoDB's key features like being document-oriented, open source, high performance, and horizontally scalable. It then demonstrates modeling the app's entities of users, places, and check-ins as MongoDB collections. It shows examples of queries, indexes, and updates used in the app. The document concludes by discussing more advanced features like aggregation and deployment options for MongoDB.
Combine Spring Data Neo4j and Spring Boot to quicklNeo4j
Speakers: Michael Hunger (Neo Technology) and Josh Long (Pivotal)
Spring Data Neo4j 3.0 is here and it supports Neo4j 2.0. Neo4j is a tiny graph database with a big punch. Graph databases are imminently suited to asking interesting questions, and doing analysis. Want to load the Facebook friend graph? Build a recommendation engine? Neo4j's just the ticket. Join Spring Data Neo4j lead Michael Hunger (@mesirii) and Spring Developer Advocate Josh Long (@starbuxman) for a look at how to build smart, graph-driven applications with Spring Data Neo4j and Spring Boot.
This document provides an introduction to MongoDB, including:
1) MongoDB is a schemaless database that supports features like replication, sharding, indexing, file storage, and aggregation.
2) The main concepts include databases containing collections of documents like tables containing rows in SQL databases, but documents can have different structures.
3) Examples demonstrate inserting, querying, updating, and embedding documents in MongoDB collections.
The document discusses MongoDB basics including:
1) Inserting and querying documents using operators like $lt and $in
2) Returning documents through cursors and using projections to select attributes
3) Updating documents using operators like $push, $inc, and $addToSet for bucketing and incrementing counters
4) The tradeoff between durability and performance using different write concerns like acknowledged, journal sync, and replication.
Webinarserie: Einführung in MongoDB: “Back to Basics” - Teil 3 - Interaktion ...MongoDB
The document discusses MongoDB basics including:
1) Inserting and querying documents using operators like $lt and $in
2) Returning documents through cursors and using projections to select attributes
3) Updating documents using operators like $push, $inc, and $addToSet along with bucketing and pre-aggregated reports
It also covers durability options like acknowledged writes and waiting for replication.
Webinar: General Technical Overview of MongoDB for Dev TeamsMongoDB
In this talk we will focus on several of the reasons why developers have come to love the richness, flexibility, and ease of use that MongoDB provides. First we will give a brief introduction of MongoDB, comparing and contrasting it to the traditional relational database. Next, we’ll give an overview of the APIs and tools that are part of the MongoDB ecosystem. Then we’ll look at how MongoDB CRUD (Create, Read, Update, Delete) operations work, and also explore query, update, and projection operators. Finally, we will discuss MongoDB indexes and look at some examples of how indexes are used.
MongoDB is an open source NoSQL database written in C++. It uses BSON format to store JSON-like documents with dynamic schemas in data collections. Some key features include:
- Flexible document schemas for storing heterogeneous data.
- Rich querying capabilities using standard queries and aggregation pipelines.
- Support for indexing, replication, and sharding for scalability.
- Data is stored in flexible, JSON-like documents which support embedding and linking of related data.
MongoDB is a document-oriented, schema-free, high-performance NoSQL database. It uses dynamic queries on JSON-like documents with various data structures and scales horizontally. MongoDB is good for high-volume data, scalability, and the web. It is less suited for highly transactional or SQL-focused workloads. Documents are stored in collections and can be queried, updated, and indexed dynamically without rigid schemas.
Getting Started with GitHub is a tech talk that introduces GitHub and Git. It discusses what GitHub and Git are, the differences between them, and how to get started using them. The talk covers installing Git, creating GitHub and Git accounts, initializing and cloning repositories, contributing to open source projects, and resources for learning more. Integrated development environments that work with Git and GitHub are also presented.
Building Microservices with Micronaut: A Full-Stack JVM-Based FrameworkMichael Redlich
1) Micronaut is a JVM-based framework for building microservices and serverless applications that offers features like reactive HTTP server/client, automatic service discovery/load balancing, and support for technologies like AWS, GCP, and GraalVM.
2) Micronaut aims to address limitations of frameworks like Spring for microservices by using ahead-of-time compilation instead of reflection at runtime for improved performance.
3) The presentation demonstrated how to quickly generate and run a basic Micronaut application in Java, Groovy, or Kotlin along with a live demo of a book inventory application built as interoperable microservices using Micronaut and Consul.
Building Microservices with Helidon: Oracle's New Java Microservices FrameworkMichael Redlich
Project Helidon, introduced by Oracle in September 2018, features an asynchronous reactive web server built on top of Netty. Oracle designed Helidon to be lightweight, easy, and fast for building microservices-based applications. There are two programming modes: Helidon SE, featuring microframeworks, and Helidon MP, which supports MicroProfile. This session provides an overview of Helidon, followed by live demonstrations of how to get started with both Helidon SE and Helidon MP, along with an application.
This document provides an overview of getting started with Java. It discusses what Java is, its evolution and key features like object-oriented programming. It reviews object-oriented programming concepts and demonstrates how to implement Java classes. The document also covers setting up a Java development environment, compiling and running Java programs, and local Java user groups and resources for learning more.
(1) The document summarizes C++ advanced features such as overloaded operators, templates, exception handling, and namespaces. It also provides an overview of the Standard Template Library (STL) including containers, iterators, and algorithms.
(2) Overloaded operators allow basic operations for user-defined types. Templates are used for generic programming of classes and functions. Exception handling provides error handling using throw/catch blocks. Namespaces prevent naming conflicts. The STL contains containers, iterators to access elements, and algorithms that perform operations on containers.
(3) Popular C++ compilers, local user groups, and further reading materials are also listed. Upcoming events include meetings of the ACGNJ Java and C++
Building Realtime Web Apps with Angular and MeteorMichael Redlich
This document provides an overview and introduction to building real-time web apps using Angular and Meteor. The objectives are to explain what Angular and Meteor are, why they should be used together, and how to get started building an application with Angular-Meteor. It outlines downloading and setting up Meteor, adding Angular and other packages, and provides resources for continued learning on Angular, Meteor, MongoDB and the Angular-Meteor framework.
This document summarizes a presentation on advanced Java features including Java Beans, exception handling, generics, Java Database Connectivity (JDBC), and the Java Collections Framework. The presentation was given by Michael P. Redlich on March 16, 2014 at the Trenton Computer Festival and covered topics such as the definition of Java Beans, the Java exception model, how generics ensure type safety, using JDBC to connect to databases, and core collection interfaces like List and Set. The document provides code examples for many of these Java concepts.
This document provides an overview and introduction to the Meteor framework. It discusses what Meteor is, the seven principles that guide its design, how to get started building apps with Meteor, and resources for learning more. The presentation aims to explain the basics of Meteor and demonstrate its capabilities through live coding examples.
Exploring the advantages of on-premises Dell PowerEdge servers with AMD EPYC processors vs. the cloud for small to medium businesses’ AI workloads
AI initiatives can bring tremendous value to your business, but you need to support your new AI workloads effectively. That means choosing the best possible infrastructure for your needs—and many companies are finding that the cloud isn’t right for them. According to a recent Rackspace survey of IT executives, 69 percent of companies have moved some of their applications on-premises from the cloud, with half of those citing security and compliance as the reason and 44 percent citing cost.
On-premises solutions provide a number of advantages. With full control over your security infrastructure, you can be certain that all compliance requirements remain firmly in the hands of your IT team. Opting for on-premises also gives you the ability to design your infrastructure to the precise needs of that team and your new AI workloads. Depending on the workload, you may also see performance benefits, along with more predictable costs. As you start to build your next AI initiative, consider an on-premises solution utilizing AMD EPYC processor-powered Dell PowerEdge servers.
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfRejig Digital
Unlock the future of oil & gas safety with advanced environmental detection technologies that transform hazard monitoring and risk management. This presentation explores cutting-edge innovations that enhance workplace safety, protect critical assets, and ensure regulatory compliance in high-risk environments.
🔍 What You’ll Learn:
✅ How advanced sensors detect environmental threats in real-time for proactive hazard prevention
🔧 Integration of IoT and AI to enable rapid response and minimize incident impact
📡 Enhancing workforce protection through continuous monitoring and data-driven safety protocols
💡 Case studies highlighting successful deployment of environmental detection systems in oil & gas operations
Ideal for safety managers, operations leaders, and technology innovators in the oil & gas industry, this presentation offers practical insights and strategies to revolutionize safety standards and boost operational resilience.
👉 Learn more: https://www.rejigdigital.com/blog/continuous-monitoring-prevent-blowouts-well-control-issues/
Create Your First AI Agent with UiPath Agent BuilderDianaGray10
Join us for an exciting virtual event where you'll learn how to create your first AI Agent using UiPath Agent Builder. This session will cover everything you need to know about what an agent is and how easy it is to create one using the powerful AI-driven UiPath platform. You'll also discover the steps to successfully publish your AI agent. This is a wonderful opportunity for beginners and enthusiasts to gain hands-on insights and kickstart their journey in AI-powered automation.
Jeremy Millul - A Talented Software DeveloperJeremy Millul
Jeremy Millul is a talented software developer based in NYC, known for leading impactful projects such as a Community Engagement Platform and a Hiking Trail Finder. Using React, MongoDB, and geolocation tools, Jeremy delivers intuitive applications that foster engagement and usability. A graduate of NYU’s Computer Science program, he brings creativity and technical expertise to every project, ensuring seamless user experiences and meaningful results in software development.
Jira Administration Training – Day 1 : IntroductionRavi Teja
This presentation covers the basics of Jira for beginners. Learn how Jira works, its key features, project types, issue types, and user roles. Perfect for anyone new to Jira or preparing for Jira Admin roles.
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Anish Kumar
Presented by: Anish Kumar
LinkedIn: https://www.linkedin.com/in/anishkumar/
This lightning talk dives into real-world GenAI projects that scaled from prototype to production using Databricks’ fully managed tools. Facing cost and time constraints, we leveraged four key Databricks features—Workflows, Model Serving, Serverless Compute, and Notebooks—to build an AI inference pipeline processing millions of documents (text and audiobooks).
This approach enables rapid experimentation, easy tuning of GenAI prompts and compute settings, seamless data iteration and efficient quality testing—allowing Data Scientists and Engineers to collaborate effectively. Learn how to design modular, parameterized notebooks that run concurrently, manage dependencies and accelerate AI-driven insights.
Whether you're optimizing AI inference, automating complex data workflows or architecting next-gen serverless AI systems, this session delivers actionable strategies to maximize performance while keeping costs low.
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdfAlkin Tezuysal
As the demand for vector databases and Generative AI continues to rise, integrating vector storage and search capabilities into traditional databases has become increasingly important. This session introduces the *MyVector Plugin*, a project that brings native vector storage and similarity search to MySQL. Unlike PostgreSQL, which offers interfaces for adding new data types and index methods, MySQL lacks such extensibility. However, by utilizing MySQL's server component plugin and UDF, the *MyVector Plugin* successfully adds a fully functional vector search feature within the existing MySQL + InnoDB infrastructure, eliminating the need for a separate vector database. The session explains the technical aspects of integrating vector support into MySQL, the challenges posed by its architecture, and real-world use cases that showcase the advantages of combining vector search with MySQL's robust features. Attendees will leave with practical insights on how to add vector search capabilities to their MySQL systems.
Mark Zuckerberg teams up with frenemy Palmer Luckey to shape the future of XR...Scott M. Graffius
Mark Zuckerberg teams up with frenemy Palmer Luckey to shape the future of XR/VR/AR wearables 🥽
Drawing on his background in AI, Agile, hardware, software, gaming, and defense, Scott M. Graffius explores the collaboration in “Meta and Anduril’s EagleEye and the Future of XR: How Gaming, AI, and Agile are Transforming Defense.” It’s a powerful case of cross-industry innovation—where gaming meets battlefield tech.
📖 Read the article: https://www.scottgraffius.com/blog/files/meta-and-anduril-eagleeye-and-the-future-of-xr-how-gaming-ai-and-agile-are-transforming-defense.html
#Agile #AI #AR #ArtificialIntelligence #AugmentedReality #Defense #DefenseTech #EagleEye #EmergingTech #ExtendedReality #ExtremeReality #FutureOfTech #GameDev #GameTech #Gaming #GovTech #Hardware #Innovation #Meta #MilitaryInnovation #MixedReality #NationalSecurity #TacticalTech #Tech #TechConvergence #TechInnovation #VirtualReality #XR
MCP vs A2A vs ACP: Choosing the Right Protocol | BluebashBluebash
Understand the differences between MCP vs A2A vs ACP agent communication protocols and how they impact AI agent interactions. Get expert insights to choose the right protocol for your system. To learn more, click here: https://www.bluebash.co/blog/mcp-vs-a2a-vs-acp-agent-communication-protocols/
Interested in leveling up your JavaScript skills? Join us for our Introduction to TypeScript workshop.
Learn how TypeScript can improve your code with dynamic typing, better tooling, and cleaner architecture. Whether you're a beginner or have some experience with JavaScript, this session will give you a solid foundation in TypeScript and how to integrate it into your projects.
Workshop content:
- What is TypeScript?
- What is the problem with JavaScript?
- Why TypeScript is the solution
- Coding demo
For the full video of this presentation, please visit: https://www.edge-ai-vision.com/2025/06/state-space-models-vs-transformers-for-ultra-low-power-edge-ai-a-presentation-from-brainchip/
Tony Lewis, Chief Technology Officer at BrainChip, presents the “State-space Models vs. Transformers for Ultra-low-power Edge AI” tutorial at the May 2025 Embedded Vision Summit.
At the embedded edge, choices of language model architectures have profound implications on the ability to meet demanding performance, latency and energy efficiency requirements. In this presentation, Lewis contrasts state-space models (SSMs) with transformers for use in this constrained regime. While transformers rely on a read-write key-value cache, SSMs can be constructed as read-only architectures, enabling the use of novel memory types and reducing power consumption. Furthermore, SSMs require significantly fewer multiply-accumulate units—drastically reducing compute energy and chip area.
New techniques enable distillation-based migration from transformer models such as Llama to SSMs without major performance loss. In latency-sensitive applications, techniques such as precomputing input sequences allow SSMs to achieve sub-100 ms time-to-first-token, enabling real-time interactivity. Lewis presents a detailed side-by-side comparison of these architectures, outlining their trade-offs and opportunities at the extreme edge.
Discover 7 best practices for Salesforce Data Cloud to clean, integrate, secure, and scale data for smarter decisions and improved customer experiences.
In this talk, Elliott explores how developers can embrace AI not as a threat, but as a collaborative partner.
We’ll examine the shift from routine coding to creative leadership, highlighting the new developer superpowers of vision, integration, and innovation.
We'll touch on security, legacy code, and the future of democratized development.
Whether you're AI-curious or already a prompt engineering, this session will help you find your rhythm in the new dance of modern development.
Evaluation Challenges in Using Generative AI for Science & Technical ContentPaul Groth
Evaluation Challenges in Using Generative AI for Science & Technical Content.
Foundation Models show impressive results in a wide-range of tasks on scientific and legal content from information extraction to question answering and even literature synthesis. However, standard evaluation approaches (e.g. comparing to ground truth) often don't seem to work. Qualitatively the results look great but quantitive scores do not align with these observations. In this talk, I discuss the challenges we've face in our lab in evaluation. I then outline potential routes forward.
Your startup on AWS - How to architect and maintain a Lean and Mean accountangelo60207
Prevent infrastructure costs from becoming a significant line item on your startup’s budget! Serial entrepreneur and software architect Angelo Mandato will share his experience with AWS Activate (startup credits from AWS) and knowledge on how to architect a lean and mean AWS account ideal for budget minded and bootstrapped startups. In this session you will learn how to manage a production ready AWS account capable of scaling as your startup grows for less than $100/month before credits. We will discuss AWS Budgets, Cost Explorer, architect priorities, and the importance of having flexible, optimized Infrastructure as Code. We will wrap everything up discussing opportunities where to save with AWS services such as S3, EC2, Load Balancers, Lambda Functions, RDS, and many others.
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowSMACT Works
In today's fast-paced business landscape, financial planning and performance management demand powerful tools that deliver accurate insights. Oracle EPM (Enterprise Performance Management) stands as a leading solution for organizations seeking to transform their financial processes. This comprehensive guide explores what Oracle EPM is, its key benefits, and how partnering with the right Oracle EPM consulting team can maximize your investment.
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowSMACT Works
Getting Started with MongoDB
1. Getting Started with
MongoDB
Capital District Java Developers Network
January 16, 2014
Michael P. Redlich
@mpredli
about.me/mpredli/
1
Friday, January 17, 14
1
2. Who’s Mike?
• BS in CS from Rutgers University
• “Petrochemical Research Organization”
• Ai-Logix, Inc. (now AudioCodes)
• Amateur Computer Group of New Jersey
• Publications
• Presentations
2
Friday, January 17, 14
2
3. Upcoming Events
• Trenton Computer Festival
• March 14-15, 2014
• tcf-nj.org
• Emerging Technologies for the Enterprise
• April 22-23, 2014
• phillyemergingtech.com
3
Friday, January 17, 14
3
5. Objectives
• What is MongoDB?
• What is NoSQL?
• Getting Started with MongoDB
• Basic CRUD Operations
• Live Demos (yea!)
• MongoDB Resources
5
Friday, January 17, 14
5
6. What is MongoDB? (1)
• “...an open-source document database that
provides high performance, high availability, and
automatic scaling.”
MongoDB Web Site, http://www.mongodb.org/
• It’s name derived from “humongous”
• Written in C++
6
Friday, January 17, 14
6
7. What is MongoDB? (2)
• “...an open-source database used by
companies of all sizes, across all industries and
for a wide variety of applications. It is an agile
database that allows schemas to change
quickly as applications evolve, while still
providing functionality developers expect from
traditional databases...”
MongoDB Products Web Site, http://www.mongodb.com/products/mongodb/
7
Friday, January 17, 14
7
8. What is NoSQL?
• Developed to address shortcomings of a
traditional SQL relational database, namely:
• big data
• frequency of access to big data
• performance and scalability
8
Friday, January 17, 14
8
14. What is a Document?
• Basic unit of data
• analogous to a row in a RDBMS
• An ordered set of fields (keys) with
associated values stored in BSON format
• similar to JSON
14
Friday, January 17, 14
14
15. What is BSON?
• “...a binary-encoded serialization of JSON-like
documents.”
BSON Web Site, http://www.bsonspec.org/
• Binary JSON
• Designed to be lightweight, traversable, and
efficient
15
Friday, January 17, 14
15
16. What is a Collection?
• A group of documents
• analogous to a table in a RDBMS
• Schema-less
16
Friday, January 17, 14
16
17. Advantages of
Documents
• Documents correspond to native data
types in many programming languages
• Embedded documents and arrays reduce
the need for expensive joins
• Dynamic schema support fluent
polymorphism
17
Friday, January 17, 14
17
21. Example Database
• ACGNJ Board of Directors:
• lastName
• firstName
• roles (embedded documents)
• tenure
21
Friday, January 17, 14
21
22. Getting Started
• Download MongoDB
• Create a default data directory
•/data/db
•C:datadb
• Create your first MongoDB database
22
Friday, January 17, 14
22
23. Starting MongoDB
• Start an instance of the MongoDB server:
$ mongod
• Start an instance of the MongoDB client (a
JavaScript-based shell):
$ mongo
23
Friday, January 17, 14
23
24. Mongo Shell (1)
• Show the list of shell commands:
> help
• Show the list of databases:
> show dbs
• Show the current database:
> db
24
Friday, January 17, 14
24
25. Mongo Shell (2)
• Specify the database to use or create:
> use database
• Show the collections within the current
database:
> show collections
• Show the users within the database:
> show users
25
Friday, January 17, 14
25
26. Mongo Shell (3)
• Show the recent system.profile
entries:
> show profile
• Tab completion
• Command history
26
Friday, January 17, 14
26
27. Primary Key
• Denoted by a special field, _id
• It can be generated:
• Implicitly:
{_id : ObjectID(value)}
•
• Explicitly:
• {_id : 2 }, { _id : “MPR”}
27
Friday, January 17, 14
27
28. ObjectIDs
• Default type for _id
• A 12-byte hexadecimal BSON type:
28
Friday, January 17, 14
28
31. Create a Database
• Create a database in MySQL:
mysql> CREATE DATABASE database;
• Create a database in MongoDB:
> use database
31
Friday, January 17, 14
31
32. Create a Collection
• Create a new table in MySQL:
mysql> CREATE TABLE table(column
datatype,...);
• Create a new collection in MongoDB:
>
db.collection.insert({field:value,.
..})
32
Friday, January 17, 14
32
33. Insert Data
• Insert a row in MySQL:
> INSERT INTO table(column,...)
VALUES(value,...);
• Insert a document in MongoDB:
>
db.collection.insert({field:value,.
..})
33
Friday, January 17, 14
33
34. Insert Data with Loops
• Insert multiple documents with an array:
> for(int i = 0;i < j;++i)
db.collection.insert({field:array[i
]});
• Insert multiple documents with variable:
> for(int i = 0;i < j;++i)
db.collection.insert({field:i})
34
Friday, January 17, 14
34
37. Query (1)
• Retrieve all rows in MySQL:
mysql> SELECT * FROM table;
• Retrieve all documents in MongoDB:
> db.collection.find()
37
Friday, January 17, 14
37
38. Query (2)
• Retrieve specified columns in MySQL:
mysql> SELECT column1,column2 FROM
table;
• Retrieve specified fields in MongoDB:
> db.collection.find({},
{field1:true,field2:true})
38
Friday, January 17, 14
38
39. Query (3)
• Retrieve specific rows in MySQL:
mysql> SELECT * FROM table WHERE
column = value;
• Retrieve specific documents in MongoDB:
> db.collection.find({field:value})
39
Friday, January 17, 14
39
40. Query (4)
• Retrieve specific rows in MySQL:
mysql> SELECT * FROM table WHERE
column = value ORDER BY value ASC;
• Retrieve specific documents in MongoDB:
>
db.collection.find({field:value}).s
ort({field:1})
40
Friday, January 17, 14
40
41. Query (5)
• Query for multiple documents (returns a
cursor):
> db.collection.find()
• Query for one document (returns a single
document):
> db.collection.findOne()
41
Friday, January 17, 14
41
49. Update (1)
• Update a row in MySQL:
mysql> UPDATE table SET column =
value WHERE id = id;
• Update a document in a MongoDB:
> db.collection.update({_id:value},
{$set:{field:value}},{multi:true})
49
Friday, January 17, 14
49
50. Update (2)
• Update a row in MySQL:
mysql> UPDATE table SET column1 =
value WHERE column2 > value;
• Update a document in MongoDB:
> db.collection.update({field1:
{$gt:value}},{$set:{field2:value}},
{multi:true})
50
Friday, January 17, 14
50
51. Update (3)
• Update a document using findOne():
> redlich =
db.members.findOne({lastName:
"Redlich"})
> redlich.roles = [{sig:"Java Users
Group"}]
> db.members.update({lastName:
"Redlich"},redlich)
51
Friday, January 17, 14
51
55. Delete (1)
• Delete all rows in MySQL:
mysql> DELETE FROM table;
• Delete all documents in MongoDB:
> db.collection.remove()
55
Friday, January 17, 14
55
56. Delete (2)
• Delete specific rows in MySQL:
mysql> DELETE FROM table WHERE
column = value;
• Delete specific documents in MongoDB:
>
db.collection.remove({field:value})
56
Friday, January 17, 14
56
57. Delete (2)
• Delete a MySQL database
mysql> DROP DATABASE database;
• Delete a MongoDB database
> use database
> db.dropDatabase()
57
Friday, January 17, 14
57
59. Export (1)
• Export a collection to a JSON file
• Ensure mongod is running
$ mongoexport --db database -collection collection --out path/
filename.json
59
Friday, January 17, 14
59
60. Export (2)
• Export a collection to a CSV file
• Ensure mongod is running
• A list of fields is required
$ mongoexport --db database -collection collection --fields
field1,field2,... --csv --out path/
filename.json
60
Friday, January 17, 14
60
61. Import
• Import a collection from a JSON, CSV, or
TSV file
• Ensure mongod is running
$ mongoimport --db database -collection collection < path/
filename.json
61
Friday, January 17, 14
61
62. Dump
• Dump a specified MySQL database:
$ mysqldump -u root --opt database
> path.filename.sql
• Dump all MongoDB databases:
• Ensure mongod is not running
$ mongodump --dbpath /data/db --out
path
62
Friday, January 17, 14
62
66. Package Components
(3)
• Data Import and Export
• mongoimport - imports JSON, CSV, or
TSV data formats
• mongoexport - exports to JSON, CSV,
or TSV data formats
66
Friday, January 17, 14
66