Tag

keys

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Oct 17, 2024 · Fundamentals

Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions

This guide demonstrates six common ways to iterate over Python dictionaries—including traversing keys, values, key‑value pairs, using enumerate for indexed access, applying conditional filters within loops, and employing dict comprehensions for efficient transformation—while explaining the appropriate use cases and performance considerations.

ItemsPythonValues
0 likes · 5 min read
Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions
Selected Java Interview Questions
Selected Java Interview Questions
Feb 7, 2024 · Databases

How to Use Redis SCAN Instead of KEYS for Safe Large‑Scale Key Enumeration

The article explains why the KEYS command can freeze a Redis instance with millions of keys, analyzes its O(n) blocking behavior, and demonstrates how the incremental SCAN command with cursor, MATCH, and COUNT parameters provides a non‑blocking alternative for retrieving prefixed keys.

BackendRedisSCAN
0 likes · 5 min read
How to Use Redis SCAN Instead of KEYS for Safe Large‑Scale Key Enumeration
Architecture Digest
Architecture Digest
Aug 9, 2023 · Databases

Using Redis SCAN to Safely Enumerate Keys Instead of KEYS

The article explains why using the KEYS command on a large Redis dataset can block the server, introduces the SCAN command as a non‑blocking alternative with cursor‑based iteration, and provides usage examples and best‑practice tips for safely listing prefixed keys.

RedisSCANcache
0 likes · 4 min read
Using Redis SCAN to Safely Enumerate Keys Instead of KEYS
ByteFE
ByteFE
Aug 26, 2021 · Frontend Development

Why React Keys Matter: The Hidden Bug in Dynamic Forms

This article explains why React keys are crucial when rendering lists, demonstrating through a dynamic form example how using array indices as keys can cause bugs when items are added or deleted.

Dynamic FormsReactReact 18
0 likes · 6 min read
Why React Keys Matter: The Hidden Bug in Dynamic Forms
Architect's Tech Stack
Architect's Tech Stack
Apr 13, 2021 · Databases

Safely Accessing Massive Redis Data Without Causing Service Outage

This article explains why using the KEYS command on large Redis keyspaces can crash the service and demonstrates how the SCAN command provides a non‑blocking, incremental way to iterate over massive data safely.

RedisSCANdatabase
0 likes · 4 min read
Safely Accessing Massive Redis Data Without Causing Service Outage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 1, 2020 · Databases

Why the Redis KEYS Command Causes Slowdowns and How to Replace It with SCAN

This article explains why using Redis's KEYS command can block other operations, illustrates the underlying single‑threaded execution model, and shows how upgrading shiro‑redis to use the SCAN command avoids performance issues in distributed session management.

RedisSCANdatabase
0 likes · 9 min read
Why the Redis KEYS Command Causes Slowdowns and How to Replace It with SCAN
Selected Java Interview Questions
Selected Java Interview Questions
Jun 3, 2020 · Databases

Using Redis SCAN to Enumerate Keys Safely and Avoid Server Blocking

The article explains why the KEYS command can cripple a Redis instance with millions of keys, analyzes its O(n) blocking behavior, and demonstrates how to use the incremental SCAN command with MATCH and COUNT options to safely iterate key prefixes without affecting performance.

RedisSCANdatabase
0 likes · 5 min read
Using Redis SCAN to Enumerate Keys Safely and Avoid Server Blocking
Architecture Digest
Architecture Digest
Dec 10, 2019 · Databases

Using Redis SCAN to Safely Enumerate Keys Instead of KEYS

The article explains why using the KEYS command on large Redis datasets can cause service blockage and demonstrates how the SCAN command with MATCH and COUNT options provides a non‑blocking, incremental way to list keys, including syntax and practical examples.

CursorRedisSCAN
0 likes · 5 min read
Using Redis SCAN to Safely Enumerate Keys Instead of KEYS