Couchbase Essentials
eBook - ePub

Couchbase Essentials

John Zablocki

Buch teilen
  1. 170 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Couchbase Essentials

John Zablocki

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Couchbase Essentials als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Couchbase Essentials von John Zablocki im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Computer Science General. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Couchbase Essentials


Table of Contents

Couchbase Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Comfortable with Couchbase
The NoSQL landscape
NoSQL taxonomies
Installing Couchbase
Installing Couchbase on Linux
Installing Couchbase on Windows
Installing Couchbase on Mac OS X
Ports
Running Couchbase for the first time
Exploring the Couchbase Console
Couchbase architecture
Couchbase clusters
Replication
Balancing and rebalancing
Couchbase SDKs
RAM matters
Summary
2. Using Couchbase CRUD Operations
The Couchbase SDKs
Basic operations
Connecting to your cluster
Creating and updating a record
Reading and deleting records
Advanced CRUD operations
Temporary keys
Appending and incrementing data
Storing complex types
Concurrency and locking
Asynchronous operations
Durability operations
Summary
3. Creating Secondary Indexes with Views
Couchbase documents
Couchbase indexes
MapReduce
Map functions
Reduce functions
Couchbase MapReduce
Basic mapping
Basic reducing
Couchbase views
Couchbase Console
Development views
Design documents
Creating a view
Querying views
Grouping
Key queries
Eventual consistency
Couchbase SDKs and views
Summary
4. Advanced Views
Querying by type
Nested collections
Range queries
Multiple keys per document
Compound indexes
Grouping keys
Emitting values
Querying with beer-sample
Querying all documents by type
Counting breweries by location
Finding beer documents by brewery
Collated views
Summary
5. Introducing N1QL
Installing N1QL
Simple queries
Null or missing properties
String utilities
Aggregation and math
Complex structures
Working with collections
Joins
SDK support
Summary
6. Designing a Schema-less Data Model
Key design
Keys, metadata, and RAM
Predictable keys
Unpredictable keys
Storing keys
Key restrictions
Document design
Denormalization
Object-to-document mappings
Data types
Document separation
Object schemas
Schema-less structure changes
Object and document properties
Document relationships
Finalizing the schema
Summary
7. Creating a To-do App with Couchbase
A simple to-do schema
Working with SDKs
A brief overview of MVC
Using SDK clients
Creating a task
Listing tasks
Showing only incomplete tasks
Nested tasks
Summary
A. Couchbase SDKs
Couchbase Java SDK
Current version
How to obtain it
The basics
Couchbase .NET SDK
Current version
How to obtain it
The basics
Couchbase PHP SDK
Current version
How to obtain it
The basics
The Couchbase Node.js SDK
Current version
How to obtain it
The basics
Couchbase Python SDK
Current version
How to obtain it
The basics
Couchbase Ruby SDK
Current version
How to obtain it
The basics
Couchbase C SDK
Current version
How to obtain it
Index

Couchbase Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2015
Production reference: 1200215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-449-3
www.packtpub.com

Credits

Author
John Zablocki
Reviewers
Roy Enjoy
Philip Hanson
Aleksandar Mićović
Chris Wilkinson
Commissioning Editor
Pramila Balan
Acquisition Editors
Richard Gall
Richard Brookes-Bland
Content Development Editor
Kirti Patil
Technical Editors
Shashank Desai
Rikita Poojari
Copy Editor
Vikrant Phadke
Project Coordinator
Nidhi Joshi
Proofreaders
Safis Editing
Maria Gould
Paul Hindle
Indexer
Rekha Nair
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite

About the Author

John Zablocki is the director of information technology at EF High School Exchange Year in Cambridge, Massachusetts, USA. Previously, he worked at Couchbase Inc. as a developer advocate, maintaining the .NET SDK and delivering training to customers and users alike. John is the author of O'Reilly's Orchard CMS. He is a frequent presenter at community events and has run Code Camps and user groups. He holds a Master's degree in computer science from Rensselaer at Hartford, where he became an enthusiast of open source technology. John can be approached online at http://about.me/johnzablocki and around Cambridge with his daughter, Mary Katherine; his dog, Lady; and his Fender Jaguar.

About the Reviewers

Roy Enjoy started to improve his geeky skills with a Commodore 64, some QBasic, and lots of Boulderdash. Then, the Internet exploded after bulletin board systems. Since it is always a shovel man who gets paid first in a gold rush, he decided to thrive within web technologies.
After finishing courses in a couple of IT-oriented schools and playing with a large number of different languages, frameworks, and databases, he worked in different parts of the world, including India, Australia, Turkey, the Netherlands, and Serbia. He is currently living in Australia, and he is trying to learn 3D animation / VFX programming and computer-generated imagery these days.
As an open source evangelist, Roy maintains an API documentation and source code search engine for the Python programming language, named pydoc.net, which is also an open source project.
Philip Hanson is a full-time professional software developer with a diverse background ranging from micro-ISV SaaS to capital-e enterprise development. He continues to experiment with new languages, techniques, and approaches to solve the world's problems.
Aleksandar Mićović started programming at the age of 12. Many years later, he graduated from the University of Toronto with a degree in computer science. Today, he's a professional software engineer and consultant in Belgrade, Serbia, with clients spanning across the globe. When he's not working, he enjoys cooking, reading, and traveling. You can contact him at http://aleksandarmicovic.com/.
Chris Wilkinson has spent years in the software development industry after attaining a degree in Computer Games Programming at the University of Teesside. After making the move into business IT upon leaving the university, Chris has worked all over the world, developing Java applications for businesses in many verticals, including finance, aerospace, and the public sector. Specialized ...

Inhaltsverzeichnis