CouchDB: The Definitive Guide. Time to Relax - Helion
ISBN: 978-14-493-8293-3
stron: 274, Format: ebook
Data wydania: 2010-01-19
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
Three of CouchDB's creators show you how to use this document-oriented database as a standalone application framework or with high-volume, distributed applications. With its simple model for storing, processing, and accessing data, CouchDB is ideal for web applications that handle huge amounts of loosely structured data. That alone would stretch the limits of a relational database, yet CouchDB offers an open source solution that's reliable, scales easily, and responds quickly.
CouchDB works with self-contained data that has loose or ad-hoc connections. It's a model that fits many real-world items, such as contacts, invoices, and receipts, but you'll discover that this database can easily handle data of any kind. With this book, you'll learn how to work with CouchDB through its RESTful web interface, and become familiar with key features such as simple document CRUD (create, read, update, delete), advanced MapReduce, deployment tuning, and more.
- Understand the basics of document-oriented storage and manipulation
- Interact with CouchDB entirely though HTTP using its RESTful interface
- Model data as self-contained JSON documents
- Handle evolving data schemas naturally
- Query and aggregate data in CouchDB using MapReduce views
- Replicate data between nodes
- Tune CouchDB for increased performance and reliability
Osoby które kupowały "CouchDB: The Definitive Guide. Time to Relax", wybierały także:
- Oracle Database 12c. Programowanie w języku PL/SQL 149,00 zł, (74,50 zł -50%)
- Integrowanie Oracle E-Business Suite R12 oraz tworzenie i rozszerzanie OA Framework. Poradnik praktyczny. Poradnik praktyczny 79,70 zł, (58,18 zł -27%)
- Mastering Snowflake Platform 109,00 zł, (81,75 zł -25%)
- Bazy danych. Podstawy projektowania i języka SQL 34,89 zł, (26,17 zł -25%)
- Head First PHP & MySQL. Edycja polska 99,00 zł, (74,25 zł -25%)
Spis treści
CouchDB: The Definitive Guide. Time to Relax eBook -- spis treści
- CouchDB: The Definitive Guide
- Dedication
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Foreword
- Preface
- Using Code Examples
- Conventions Used in This Book
- Safari Books Online
- How to Contact Us
- Acknowledgments
- J. Chris
- Jan
- Noah
- I. Introduction
- 1. Why CouchDB?
- Relax
- A Different Way to Model Your Data
- A Better Fit for Common Applications
- Self-Contained Data
- Syntax and Semantics
- Building Blocks for Larger Systems
- CouchDB Replication
- Local Data Is King
- Wrapping Up
- 2. Eventual Consistency
- Working with the Grain
- The CAP Theorem
- Local Consistency
- The Key to Your Data
- No Locking
- Validation
- Distributed Consistency
- Incremental Replication
- Case Study
- Wrapping Up
- 3. Getting Started
- All Systems Are Go!
- Welcome to Futon
- Your First Database and Document
- Running a Query Using MapReduce
- Triggering Replication
- Wrapping Up
- 4. The Core API
- Server
- Databases
- Documents
- Revisions
- Documents in Detail
- Attachments
- Replication
- Wrapping Up
- 1. Why CouchDB?
- II. Developing with CouchDB
- 5. Design Documents
- Document Modeling
- The Query Server
- Applications Are Documents
- A Basic Design Document
- Looking to the Future
- 6. Finding Your Data with Views
- What Is a View?
- Efficient Lookups
- Find One
- Find Many
- Reversed Results
- The View to Get Comments for Posts
- Reduce/Rereduce
- Lessons Learned
- Wrapping Up
- 7. Validation Functions
- Document Validation Functions
- Validations Context
- Writing One
- Type
- Required Fields
- Timestamps
- Authorship
- Wrapping Up
- 8. Show Functions
- The Show Function API
- Side EffectFree
- Design Documents
- Querying Show Functions
- Design Document Resources
- Query Parameters
- Accept Headers
- Etags
- Functions and Templates
- The !json Macro
- The !code Macro
- Learning Shows
- Using Templates
- Writing Templates
- 9. Transforming Views with List Functions
- Arguments to the List Function
- An Example List Function
- List Theory
- Querying Lists
- Lists, Etags, and Caching
- 5. Design Documents
- III. Example Application
- 10. Standalone Applications
- Use the Correct Version
- Portable JavaScript
- Applications Are Documents
- Standalone
- In the Wild
- Wrapping Up
- 11. Managing Design Documents
- Working with the Example Application
- Installing CouchApp
- Using CouchApp
- Download the Sofa Source Code
- CouchApp Clone
- ZIP and TAR Files
- Join the Sofa Development Community on GitHub
- The Sofa Source Tree
- Deploying Sofa
- Pushing Sofa to Your CouchDB
- Visit the Application
- Set Up Your Admin Account
- Deploying to a Secure CouchDB
- Configuring CouchApp with .couchapprc
- 12. Storing Documents
- JSON Document Format
- Beyond _id and _rev: Your Document Data
- The Edit Page
- The HTML Scaffold
- Saving a Document
- Validation
- Save Your First Post
- Wrapping Up
- 13. Showing Documents in Custom Formats
- Rendering Documents with Show Functions
- The Post Page Template
- Dynamic Dates
- Rendering Documents with Show Functions
- 14. Viewing Lists of Blog Posts
- Map of Recent Blog Posts
- Rendering the View as HTML Using a List Function
- Sofas List Function
- The Final Result
- 10. Standalone Applications
- IV. Deploying CouchDB
- 15. Scaling Basics
- Scaling Read Requests
- Scaling Write Requests
- Scaling Data
- Basics First
- 16. Replication
- The Magic
- Simple Replication with the Admin Interface
- Replication in Detail
- Continuous Replication
- Thats It?
- 17. Conflict Management
- The Split Brain
- Conflict Resolution by Example
- Working with Conflicts
- Deterministic Revision IDs
- Wrapping Up
- 18. Load Balancing
- Having a Backup
- 19. Clustering
- Introducing CouchDB Lounge
- Consistent Hashing
- Redundant Storage
- Redundant Proxies
- View Merging
- Growing the Cluster
- Moving Partitions
- Splitting Partitions
- 15. Scaling Basics
- V. Reference
- 20. Change Notifications
- Polling for Changes
- Long Polling
- Continuous Changes
- Filters
- Wrapping Up
- 21. View Cookbook for SQL Jockeys
- Using Views
- Defining a View
- Querying a View
- MapReduce Functions
- Map functions
- Reduce functions
- Look Up by Key
- Look Up by Prefix
- Aggregate Functions
- Get Unique Values
- Enforcing Uniqueness
- Using Views
- 22. Security
- The Admin Party
- Creating New Admin Users
- Hashing Passwords
- Basic Authentication
- Update Validations Again
- Cookie Authentication
- Network Server Security
- The Admin Party
- 23. High Performance
- Good Benchmarks Are Non-Trivial
- High Performance CouchDB
- Hardware
- An Implementation Note
- Bulk Inserts and Mostly Monotonic DocIDs
- Optimized Examples: Views and Replication
- Bulk Document Inserts
- Batch Mode
- Single Document Inserts
- Hovercraft
- Trade-Offs
- ButMy Boss Wants Numbers!
- A Call to Arms
- 24. Recipes
- Banking
- Accountants Dont Use Erasers
- Wrapping Up
- Ordering Lists
- A List of Integers
- A List of Floats
- Pagination
- Example Data
- A View
- Setup
- Slow Paging (Do Not Use)
- The dealbreaker
- Fast Paging (Do Use)
- Jump to Page
- Banking
- 20. Change Notifications
- VI. Appendixes
- A. Installing on Unix-like Systems
- Debian GNU/Linux
- Ubuntu
- Gentoo Linux
- Problems
- B. Installing on Mac OS X
- CouchDBX
- Homebrew
- MacPorts
- C. Installing on Windows
- D. Installing from Source
- Dependencies
- Debian-Based (Including Ubuntu) Systems
- Mac OS X
- Installing
- Security Considerations
- Running Manually
- Running As a Daemon
- SysV/BSD-Style Systems
- Mac OS X
- Troubleshooting
- Dependencies
- E. JSON Primer
- Data Types
- Numbers
- Strings
- Booleans
- Arrays
- Objects
- Nulls
- Data Types
- F. The Power of B-trees
- A. Installing on Unix-like Systems
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright