MongoDB: the definitive guide: powerful and scalable data storage
Gespeichert in:
Beteiligte Personen: | , , |
---|---|
Format: | Buch |
Sprache: | Englisch |
Veröffentlicht: |
Beijing
O'Reilly
December 2019
|
Ausgabe: | third edition |
Schlagwörter: | |
Links: | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031268967&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
Umfang: | xix, 489 Seiten Illustrationen 24 cm |
ISBN: | 9781491954461 |
Internformat
MARC
LEADER | 00000nam a22000008c 4500 | ||
---|---|---|---|
001 | BV045885897 | ||
003 | DE-604 | ||
005 | 20200713 | ||
007 | t| | ||
008 | 190520s2019 xx a||| |||| 00||| eng d | ||
020 | |a 9781491954461 |9 978-1-4919-5446-1 | ||
035 | |a (OCoLC)1136278806 | ||
035 | |a (DE-599)BVBBV045885897 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-355 |a DE-898 |a DE-739 |a DE-29T |a DE-573 |a DE-522 | ||
084 | |a ST 271 |0 (DE-625)143639: |2 rvk | ||
100 | 1 | |a Bradshaw, Shannon |e Verfasser |0 (DE-588)1202802702 |4 aut | |
245 | 1 | 0 | |a MongoDB: the definitive guide |b powerful and scalable data storage |c Shannon Bradshaw, Eoin Brazil and Kristina Chodorow |
250 | |a third edition | ||
264 | 1 | |a Beijing |b O'Reilly |c December 2019 | |
300 | |a xix, 489 Seiten |b Illustrationen |c 24 cm | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a NoSQL-Datenbanksystem |0 (DE-588)7722784-0 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a MongoDB |0 (DE-588)7724020-0 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Open Source |0 (DE-588)4548264-0 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a MongoDB |0 (DE-588)7724020-0 |D s |
689 | 0 | 1 | |a NoSQL-Datenbanksystem |0 (DE-588)7722784-0 |D s |
689 | 0 | |5 DE-604 | |
689 | 1 | 0 | |a NoSQL-Datenbanksystem |0 (DE-588)7722784-0 |D s |
689 | 1 | 1 | |a Open Source |0 (DE-588)4548264-0 |D s |
689 | 1 | |8 1\p |5 DE-604 | |
700 | 1 | |a Brazil, Eoin |e Verfasser |0 (DE-588)1202802796 |4 aut | |
700 | 1 | |a Chodorow, Kristina |e Verfasser |0 (DE-588)142629960 |4 aut | |
856 | 4 | 2 | |m Digitalisierung UB Passau - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031268967&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk | |
943 | 1 | |a oai:aleph.bib-bvb.de:BVB01-031268967 |
Datensatz im Suchindex
_version_ | 1819370266585726976 |
---|---|
adam_text | Table of Contents Preface....................................................................................................... xv Part I. Introduction to MongoDB 1. Introduction............................................................................................. 3 Ease of Use Designed to Scale Rich with Features... ... Without Sacrificing Speed The Philosophy 3 4 5 6 6 2. Getting Started....................................................................................... 7 Documents Collections Dynamic Schemas Naming Databases Getting and Starting MongoDB Introduction to the MongoDB Shell Running the Shell A MongoDB Client Basic Operations with the Shell Data Types Basic Data Types Dates 7 8 8 9 10 11 13 13 14 14 16 16 18
Arrays Embedded Documents _id and Objectlds Using the MongoDB Shell Tips for Using the Shell Running Scripts with the Shell Creating a .mongorc.js Customizing Your Prompt Editing Complex Variables Inconvenient Collection Names 19 19 20 22 22 23 25 26 27 28 Creating, Updating, and Deleting Documents........................ ...................... 29 Inserting Documents 29 insertMany 29 Insert Validation 32 insert 33 Removing Documents 33 drop 34 Updating Documents 35 Document Replacement 35 Using Update Operators 37 Upserts 46 Updating Multiple Documents 49 Returning Updated Documents 49 Querying....................................................................... ....................... Introduction to find Specifying Which Keys to Return Limitations Query Criteria Query Conditionals OR Queries $not Type-Specific Queries null Regular Expressions Querying Arrays Querying on Embedded Documents $where Queries Cursors 53 53 54 55 55 55 56 57 57 57 58 59 63 65 66
Limits, Skips, and Sorts Avoiding Large Skips Immortal Cursors Part II. 67 68 70 Designing Your Application Indexes.................................................................... ........................... 75 Introduction to Indexes Creating an Index Introduction to Compound Indexes How MongoDB Selects an Index Using Compound Indexes How $ Operators Use Indexes Indexing Objects and Arrays Index Cardinality explain Output When Not to Index Types of Indexes Unique Indexes Partial Indexes Index Administration Identifying Indexes Changing Indexes 75 78 81 84 85 104 114 116 116 125 126 126 128 129 130 130 Special Index and Collection Types.................................. ......................... 133 Geospatial Indexes Types of Geospatial Queries Using Geospatial Indexes Compound Geospatial Indexes 2d Indexes Indexes for Full Text Search Creating a Text Index Text Search Optimizing Full-Text Search Searching in Other Languages Capped Collections Creating Capped Collections Tailable Cursors Time-To-Live Indexes 133 134 136 144 144 146 147 148 151 151 151 154 154 155
Storing Files with GridFS Getting Started with GridFS: mongofìles Working with GridFS from the MongoDB Drivers Under the Hood 7. Introduction to the Aggregation Framework............................................................. Pipelines, Stages, and Tunables Getting Started with Stages: Familiar Operations Expressions $project $unwind Array Expressions Accumulators Using Accumulators in Project Stages Introduction to Grouping The _id Field in Group Stages Group Versus Project Writing Aggregation Pipeline Results to a Collection 156 156 157 158 161 161 163 168 169 174 181 186 186 188 192 195 198 8. Transactions..................................................................................................................... 199 Introduction to Transactions A Definition of ACID How to Use Transactions Tuning Transaction Limits for Your Application Timing and Oplog Size Limits 9. Application Design....................................................................................................... Schema Design Considerations Schema Design Patterns Normalization Versus Denormalization Examples of Data Representations Cardinality Friends, Followers, and Other Inconveniences Optimizations for Data Manipulation Removing Old Data Planning Out Databases and Collections Managing Consistency Migrating Schemas Managing Schemas When Not to Use MongoDB 199 200 200 205 205 207 207 208 211 212 216 216 219 219 220 221 222 223 223
Part III. Replication Setting Up a Replica Set........................................................ ................ 227 Introduction to Replication Setting Up a Replica Set, Part 1 Networking Considerations Security Considerations Setting Up a Replica Set, Part 2 Observing Replication Changing Your Replica Set Configuration How to Design a Set How Elections Work Member Configuration Options Priority Hidden Members Election Arbiters Building Indexes 227 228 229 230 230 233 238 241 243 244 244 245 246 247 Components of a Replica Set.................................................. ................ 249 Syncing Initial Sync Replication Handling Staleness Heartbeats Member States Elections Rollbacks When Rollbacks Fail 249 251 253 253 253 254 255 255 259 Connecting to a Replica Set from Your Application........................ ............... 261 Client-to-Replica Set Connection Behavior Waiting for Replication on Writes Other Options for V Custom Replication Guarantees Guaranteeing One Server per Data Center Guaranteeing a Majority of Nonhidden Members Creating Other Guarantees Sending Reads to Secondaries Consistency Considerations 261 263 265 265 265 267 267 268 268
Load Considerations Reasons to Read from Secondaries 269 269 Administration........................................................................ ............................. 271 Starting Members in Standalone Mode Replica Set Configuration Creating a Replica Set Changing Set Members Creating Larger Sets Forcing Reconfiguration Manipulating Member State Turning Primaries into Secondaries Preventing Elections Monitoring Replication Getting the Status Visualizing the Replication Graph Replication Loops Disabling Chaining Calculating Lag Resizing the Oplog Building Indexes Replication on a Budget Part IV. 271 272 272 273 274 274 275 275 275 275 276 279 280 281 281 282 283 285 Sharding 14. Introduction to Sharding........................................................................................ 289 What Is Sharding? Understanding the Components of a Cluster Sharding on a Single-Machine Cluster 289 290 291 15. Configuring Sharding............................................................................................. 303 When to Shard Starting the Servers Config Servers The mongos Processes Adding a Shard from a Replica Set Adding Capacity Sharding Data How MongoDB Tracks Cluster Data 303 304 304 305 306 310 310 311
Chunk Ranges Splitting Chunks The Balancer Collations Change Streams 312 314 316 317 317 16. Choosing a Shard Key............................................................................. 319 Taking Stock of Your Usage Picturing Distributions Ascending Shard Keys Randomly Distributed Shard Keys Location-Based Shard Keys Shard Key Strategies Hashed Shard Key Hashed Shard Keys for GridFS The Firehose Strategy Multi-Hotspot Shard Key Rules and Guidelines Shard Key Limitations Shard Key Cardinality Controlling Data Distribution Using a Cluster for Multiple Databases and Collections Manual Sharding 319 320 320 323 325 327 327 328 329 330 334 334 334 334 335 336 17. Sharding Administration........................................................................ 339 Seeing the Current State Getting a Summary with sh.statusQ Seeing Configuration Information Tracking Network Connections Getting Connection Statistics Limiting the Number of Connections Server Administration Adding Servers Changing Servers in a Shard Removing a Shard Balancing Data The Balancer Changing Chunk Size Moving Chunks Jumbo Chunks 339 339 341 348 348 354 356 356 356 356 359 360 361 362 364
Refreshing Configurations Part V. 367 Application Administration 18. Seeing What Your Application Is Doing....................................................................... 371 Seeing the Current Operations Finding Problematic Operations Killing Operations False Positives Preventing Phantom Operations Using the System Profiler Calculating Sizes Documents Collections Databases Using mongotop and mongostat 371 374 375 375 375 376 379 379 380 385 386 19. An Introduction to MongoDB Security......................................................................... 389 MongoDB Authentication and Authorization Authentication Mechanisms Authorization Using X.509 Certificates to Authenticate Both Members and Clients A Tutorial on MongoDB Authentication and Transport Layer Encryption Establish a CA Generate and Sign Member Certificates Generate and Sign Client Certificates Bring Up the Replica Set Without Authentication and Authorization Enabled Create the Admin User Restart the Replica Set with Authentication and Authorization Enabled 389 389 390 392 395 395 400 401 401 402 403 20. Durability....................................................................................................................... 405 Durability at the Member Level Through Journaling Durability at the Cluster Level Using Write Concern The w and wtimeout Options for writeConcern The j (Journaling) Option for writeConcern Durability at a Cluster Level Using Read Concern Durability of Transactions Using a Write Concern What MongoDB Does Not Guarantee 405 407 407 408 408 409 410
Checking for Corruption Part VI. 410 Server Administration 21. Setting Up MongoDB in Production........................................................... 415 Starting from the Command Line File-Based Configuration Stopping MongoDB Security Data Encryption SSL Connections Logging 415 419 420 421 422 423 423 22. Monitoring MongoDB.............................................................................. 425 Monitoring Memory Usage Introduction to Computer Memory Tracking Memory Usage Tracking Page Faults I/O Wait Calculating the Working Set Some Working Set Examples Tracking Performance Tracking Free Space Monitoring Replication 425 426 426 427 429 429 431 431 433 433 23. Making Backups................................................................................... 437 Backup Methods Backing Up a Server Filesystem Snapshot Copying Data Files Using mongodump Specific Considerations for Replica Sets Specific Considerations for Sharded Clusters Backing Up and Restoring an Entire Cluster Backing Up and Restoring a Single Shard 437 438 438 442 443 446 446 447 447 24. Deploying MongoDB................................................................................ 449 Designing the System Choosing a Storage Medium 449 449
Recommended RAID Configurations CPU Operating System Swap Space Filesystem Virtualization Memory Overcommitting Mystery Memory Handling Network Disk I/O Issues Using Non-Networked Disks Configuring System Settings Turning Off NUMA Setting Readahead Disabling Transparent Huge Pages (THP) Choosing a Disk Scheduling Algorithm Disabling Access Time Tracking Modifying Limits Configuring Your Network System Housekeeping Synchronizing Clocks The OOM Killer Turn Off Periodic Tasks 450 451 451 452 452 453 453 453 453 455 455 455 457 458 458 459 460 461 462 462 463 463 A. Installing NIongoDB................................................................. .......................465 B. MongoDB Internals................................................................. ....................... 469 Index, 475
|
any_adam_object | 1 |
author | Bradshaw, Shannon Brazil, Eoin Chodorow, Kristina |
author_GND | (DE-588)1202802702 (DE-588)1202802796 (DE-588)142629960 |
author_facet | Bradshaw, Shannon Brazil, Eoin Chodorow, Kristina |
author_role | aut aut aut |
author_sort | Bradshaw, Shannon |
author_variant | s b sb e b eb k c kc |
building | Verbundindex |
bvnumber | BV045885897 |
classification_rvk | ST 271 |
ctrlnum | (OCoLC)1136278806 (DE-599)BVBBV045885897 |
discipline | Informatik |
edition | third edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01892nam a22004338c 4500</leader><controlfield tag="001">BV045885897</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20200713 </controlfield><controlfield tag="007">t|</controlfield><controlfield tag="008">190520s2019 xx a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781491954461</subfield><subfield code="9">978-1-4919-5446-1</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1136278806</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV045885897</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-355</subfield><subfield code="a">DE-898</subfield><subfield code="a">DE-739</subfield><subfield code="a">DE-29T</subfield><subfield code="a">DE-573</subfield><subfield code="a">DE-522</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 271</subfield><subfield code="0">(DE-625)143639:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Bradshaw, Shannon</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1202802702</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">MongoDB: the definitive guide</subfield><subfield code="b">powerful and scalable data storage</subfield><subfield code="c">Shannon Bradshaw, Eoin Brazil and Kristina Chodorow</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">third edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">December 2019</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xix, 489 Seiten</subfield><subfield code="b">Illustrationen</subfield><subfield code="c">24 cm</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">NoSQL-Datenbanksystem</subfield><subfield code="0">(DE-588)7722784-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">MongoDB</subfield><subfield code="0">(DE-588)7724020-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Open Source</subfield><subfield code="0">(DE-588)4548264-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">MongoDB</subfield><subfield code="0">(DE-588)7724020-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">NoSQL-Datenbanksystem</subfield><subfield code="0">(DE-588)7722784-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="689" ind1="1" ind2="0"><subfield code="a">NoSQL-Datenbanksystem</subfield><subfield code="0">(DE-588)7722784-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2="1"><subfield code="a">Open Source</subfield><subfield code="0">(DE-588)4548264-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Brazil, Eoin</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1202802796</subfield><subfield code="4">aut</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Chodorow, Kristina</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)142629960</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Passau - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031268967&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-031268967</subfield></datafield></record></collection> |
id | DE-604.BV045885897 |
illustrated | Illustrated |
indexdate | 2024-12-20T18:37:34Z |
institution | BVB |
isbn | 9781491954461 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-031268967 |
oclc_num | 1136278806 |
open_access_boolean | |
owner | DE-355 DE-BY-UBR DE-898 DE-BY-UBR DE-739 DE-29T DE-573 DE-522 |
owner_facet | DE-355 DE-BY-UBR DE-898 DE-BY-UBR DE-739 DE-29T DE-573 DE-522 |
physical | xix, 489 Seiten Illustrationen 24 cm |
publishDate | 2019 |
publishDateSearch | 2019 |
publishDateSort | 2019 |
publisher | O'Reilly |
record_format | marc |
spellingShingle | Bradshaw, Shannon Brazil, Eoin Chodorow, Kristina MongoDB: the definitive guide powerful and scalable data storage NoSQL-Datenbanksystem (DE-588)7722784-0 gnd MongoDB (DE-588)7724020-0 gnd Open Source (DE-588)4548264-0 gnd |
subject_GND | (DE-588)7722784-0 (DE-588)7724020-0 (DE-588)4548264-0 |
title | MongoDB: the definitive guide powerful and scalable data storage |
title_auth | MongoDB: the definitive guide powerful and scalable data storage |
title_exact_search | MongoDB: the definitive guide powerful and scalable data storage |
title_full | MongoDB: the definitive guide powerful and scalable data storage Shannon Bradshaw, Eoin Brazil and Kristina Chodorow |
title_fullStr | MongoDB: the definitive guide powerful and scalable data storage Shannon Bradshaw, Eoin Brazil and Kristina Chodorow |
title_full_unstemmed | MongoDB: the definitive guide powerful and scalable data storage Shannon Bradshaw, Eoin Brazil and Kristina Chodorow |
title_short | MongoDB: the definitive guide |
title_sort | mongodb the definitive guide powerful and scalable data storage |
title_sub | powerful and scalable data storage |
topic | NoSQL-Datenbanksystem (DE-588)7722784-0 gnd MongoDB (DE-588)7724020-0 gnd Open Source (DE-588)4548264-0 gnd |
topic_facet | NoSQL-Datenbanksystem MongoDB Open Source |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031268967&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT bradshawshannon mongodbthedefinitiveguidepowerfulandscalabledatastorage AT brazileoin mongodbthedefinitiveguidepowerfulandscalabledatastorage AT chodorowkristina mongodbthedefinitiveguidepowerfulandscalabledatastorage |