Gleam Lab · Blog Archive
Blog Page 21
Technical exploration and engineering notes, 655 articles in total.
MongoDB Use Cases & Selection Guide
MongoDB is suitable for website data storage, caching systems, big data analysis, IoT, social media, live streaming platforms and more.
Spring Boot MongoDB: Template vs Repository with Index Tips
Two ways to connect Spring Boot to MongoDB: MongoTemplate and MongoRepository, with complete Java code examples and common problem troubleshooting.
Java MongoDB CRUD: Complete Guide from Setup to Operations
Complete guide to accessing MongoDB with Java, including environment setup, Maven dependencies, connection, CRUD operations, POJO mapping, index management.
MongoDB Slow Query Analysis & Index Tuning
MongoDB slow query analysis through built-in Profiler, set db.setProfilingLevel(1, m) to record slow queries. EXPLAIN analysis helps identify performance bottlenecks and...
MongoDB Storage Engines: WiredTiger vs InMemory Comparison
Comparison of MongoDB's two main storage engines WiredTiger and InMemory, including configuration methods and verification steps. WiredTiger recommended for production en...
MongoDB Replica Set Containerization: Keyfile and Auth Quick Start
MongoDB 7 replica set containerization best practices: generate keyfile, explicitly enable --auth, use one-time container for rs.initiate and admin user creation.
MongoDB Replica Set Deployment: Single Machine, Three Instances
MongoDB replica set single machine three instance deployment guide including configuration, initialization, adding/removing nodes, elections, read-write separation and ro...
MongoDB Data Modeling: Embedded vs Reference Selection Guide
MongoDB data modeling choice between embedded and reference, following three principles: embed for 1:few, use reference for unbounded growth, use $lookup+index for cross-...
MongoDB Replica Set: oplog, Heartbeat & Elections Explained
MongoDB replica set concepts: oplog location and idempotency, heartbeat frequency and election timeout, member/voting limits (50/7). Note that master-slave replication wa...
MongoDB Production Security Hardening: Auth, RBAC & TLS
MongoDB production environment security hardening guide including authentication, RBAC minimum privileges, internal network bindIp/firewall ACL, TLS/SSL encryption.
MongoDB Sharding: Shard, Config Server and Mongos Complete Guide
MongoDB sharded cluster detailed explanation: sharding consists of Shard, Config Server, Mongos. Shard key selection includes range sharding, hashed sharding...
MongoDB Auth and Permissions: From Single Instance to Sharded Cluster
MongoDB authentication and permission configuration from single instance to sharded cluster. Implementation order: create admin/root first → enable authorization → assign...
MongoDB Sharded Cluster Deployment: Complete Guide with Scripts
Step-by-step MongoDB sharded cluster setup (configsvr×3 + two shard replica sets×3 nodes + multiple mongos), including configuration, initialization, adding shards...
Neo4j Graph Theory: Euler Path and Circuit with Python NetworkX
Euler path/circuit determination: undirected graphs check connectivity and odd-degree vertices, directed graphs check weak connectivity and in/out-degree balance.
MySQL Transaction Isolation Levels: Read Uncommitted to Serializable
This article provides an in-depth explanation of MySQL transaction isolation levels: Read Uncommitted, Read Committed, Repeatable Read, and Serializable...
Big Data 223 - How to Build an Offline Data Warehouse: Tracking, Metrics and Thematic Analysis
Complete guide to building offline data warehouses: data tracking, metric system design, theme analysis, and standardization practices for e-commerce teams.
Offline Data Warehouse Architecture Selection and Cluster Design
Offline Data Warehouse (Offline DW) overall architecture design and implementation method: Framework selection comparison between Apache community version and.
MyBatis Level 2 Cache Integration with Redis, Testing and Source Code Analysis
Currently, the level 2 cache we implement is per service. At this time, the cache is on a single server.
Big Data 221 - Offline Data Warehouse Layering: ODS, DWD, DWS, DIM and ADS Architecture
Scenario: The more department-built data marts, the more inconsistent definitions, disconnected interfaces, forming data silos, and exploding data query costs.
Offline Data Warehouse Modeling Practice
In data warehouse architecture, Fact Table is the core table structure that stores business process metric values or facts.