Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

MongoDB 2.2 adds aggregation

Posted on August 31, 2012

The latest release of MongoDB, version 2.2, has been announced and is making it easier to process documents inside the NoSQL database with the addition of an Aggregation Framework to the JSON document storing server. The NoSQL database developed by10Gen also sees improvements in “Data Center Awareness”, for situations where clusters of the database are being operated over a number of geographically diverse locations, by allowing data to be sharded on the basis of tags.

For better performance, the developers have also eliminated the global lock in its mongod process and moved locking to a per database level. Where systems have a single database in use, concurrency should also be improved because a new subsystem tries to avoid locking on page faults.

The Aggregation Framework, now available as production ready in MongoDB 2.2, allows users to perform operations similar to SQL’s GROUP BY without using the MapReduce capabilities of the database. Documents can be aggregated in pipelines which can map fields, filter down documents that don’t match, flatten arrays, find maximum or minimum values, or group documents. Calculations can then be applied to the documents in the pipelines. For example,

[sourcecode language=”json”]
db.zipcodes.aggregate({ $group :
{ _id : "$state",
totalPop : { $sum : "$pop" } } },
{ $match : {totalPop : { $gte : 10*1000*1000 } } } )
[/sourcecode]

collects all the documents from the “zipcodes” collection using the $group operator and creates a document with an _id field for each state, calculates the total population per state with $sum and finally discards any records where the total population is not greater than ten million (using $match and $gte).

Another feature allows for collections to have data with a TTL (time to live), which can be removed from the collection when the time has expired. These headline features are complemented by a range of smaller enhancements such as a more bash-like shell, the ability send logs to syslog, and a touch command to force reading of data into memory.

Full details of all the changes in MongoDB 2.2 are available in the release notes, which also include instructions how to upgrade. MongoDB 2.2 is available to download as binaries for 32- and 64-bit Linux, Windows, Mac OS X and 64-bit Solaris. Source code is also available and is licensed under the AGPLv3. 10Gen also supply commercially licensed versions of MongoDB. via H-Online

Terbaru

  • Apakah Jika Ganti Baterai HP, Data akan Hilang?
  • Apa itu Game Sakura School Simulator Solwa?
  • Hasil Benchmark Xiaomi Pad 8 Global Bocor! Siap-siap Masuk Indonesia Nih
  • KAGET! Ressa Rizky Rossano Akui Sudah Nikah & Punya Anak
  • Inilah Kronologi Ledakan Bom Rakitan SMPN 3 Sungai Raya, Kubu Raya Kalbar
  • Cara Mengatasi Error 208 BCA Mobile
  • Hapus Sekarang! Inilah Hornet, App LGBTQ Tembus Indonesia, Hati-hati
  • Berapa Lama Sih Ngecas HP 33 Watt? Ini Dia Penjelasannya!
  • Cara Cek Saldo Hana Bank Lewat SMS
  • Update Sistem Google Februari 2026: Apa yang Baru dan Perlu Kalian Tahu?
  • Membership FF Bulanan & Mingguan: Berapa DM yang Harus Kalian Siapkan?
  • Maksimal Ngecas HP Berapa Kali Sehari? Boleh 2 Kali Nggak, Sih?
  • Cara Mengatasi Error “Try Again, Open in Another App”
  • Sideload Android: Cara Pasang APK Tanpa Google Play Store (Panduan Lengkap 2026)
  • iPhone Jadi Kamera Vintage Modular? Proyek Kickstarter Ini Bikin Kagum!
  • Cara Mengatasi Video Nest Cam Bermasalah dan Video Hilang
  • iTunes Masih Jadi Rajanya Music? Ini Faktanya!
  • Google Home Smart Button Makin Canggih: Kini Otomatisasi Lebih Fleksibel!
  • F1: The Movie Raih Grammy! Tak Terduga, Kalahkan Bintang Country Ternama
  • Blokir Situs Judi Online: Lindungi Diri & Keluarga dari Dampak Negatif
  • Belanda Larang Anak di Bawah 16 Tahun Gunakan Media Sosial: Ini Detailnya!
  • Gemini Live Mendapat Desain Ulang ‘Floating UI’ yang Super Keren!
  • Galaxy S26 Kehilangan Magnet Qi2? Kebocoran Terbaru Bikin Penasaran!
  • DCT Coin: Crypto Legitim atau Penipuan? Bedah Tuntas, Harga & Fakta Penting!
  • Apple Rilis Update Terbaru untuk iOS, macOS, watchOS & Lainnya!
  • Paket Super Seru Telkomsel: Aplikasi Apa Saja yang Bisa Digunakan?
  • Deus Ex: Human Revolution GRATIS di Android! Buruan Download Sebelum Hilang!
  • Apa Bedanya Thigh, Wing, dan Drumstick di McDonald’s? Yuk, Kupas Tuntas!
  • OpenAI Luncurkan Codex App untuk macOS: Kode Jadi Lebih Mudah!
  • Dana Kaget Wealth Plan: Untung atau Mitos? Review Jujur & Cara Daftarnya!
  • How to Run Qwen (14B) on AMD MI200 with vLLM
  • How to Enable New Run Dialog in Windows 11
  • How to Disable AI Features in Firefox 148
  • Git 2.53: What’s New?
  • Linux From Scratch Ditches Old System V init
  • Cara Membuat Podcast dari PDF dengan NotebookLlama dan Groq
  • Tutorial Membuat Sistem Automatic Content Recognition (ACR) untuk Deteksi Logo
  • Apa itu Google Code Wiki?
  • Cara Membuat Agen AI Otomatis untuk Laporan ESG dengan Python dan LangChain
  • Cara Membuat Pipeline RAG dengan Framework AutoRAG
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
Beli Morning Star Kursi Gaming/Kantor disini: https://s.shopee.co.id/805iTUOPRV
Beli Pemotong Rumput dengan Baterai IRONHOOF 588V Mesin Potong Rumput 88V disini https://s.shopee.co.id/70DBGTHtuJ

©2026 emka.web.id | Design: Newspaperly WordPress Theme