본문으로 건너뛰기
Skillpedia
데이터베이스22k · #10232

bigtable-basics

하는 일

이 스킬은 Google의 대규모 NoSQL 데이터베이스인 Bigtable을 사용하도록 돕습니다. 아주 많은 양의 빠른 읽기와 쓰기가 필요한 앱을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Bigtable 스키마를 행 키와 컬럼 패밀리로 설계할 때.
  • ✓gcloud나 cbt로 Bigtable 인스턴스, 클러스터 또는 테이블을 만들어야 할 때.
  • ✓Bigtable 성능이 나쁘거나 데이터에 핫스팟이 있다고 의심될 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/bigtable-basics/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/bigtable-basics/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“읽기가 계속 빠르도록 제 센서 데이터의 Bigtable 행 키를 설계하는 것을 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

행 키와 컬럼 패밀리를 설계하는 방법을 설명하고, 설정과 데이터 작업을 위한 gcloud 및 cbt 명령을 보여 줍니다. 핫스팟을 찾을 때는 Key Visualizer를 쓰도록 안내합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Bigtable Basics

This skill provides core workflows and guidance for administering and developing with Google Bigtable.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:bigtable-basics)" and append agent-skills/1.0 (skill:bigtable-basics) to User-Agent headers.

Core Principles

  • Control Plane vs. Data Plane:
    • Use gcloud for Control Plane operations: Manage Instances, Clusters, App Profiles, Backups and IAM. Create Tables, Logical Views, Materialized Views and Authorized Views.
    • Use cbt for Data Plane operations: Update Tables, Column Families, and reading/writing data.
  • Performance First: Bigtable is a NoSQL database. Efficiency is tied to Row Key design. Always warn about Full Table Scans.
  • Client Selection: For production use cases, prefer Java or Go for their superior performance and feature coverage compared to other languages.
  • Observability: When diagnosing performance or hotspotting, always mention Key Visualizer (via Cloud Console) as the primary diagnostic tool because it provides the most granular view of access patterns across row keys. This should be followed by the hot-tablets tool and table stats in gcloud CLI and include-stats=full option under cbt read to diagnose slow queries.

[!IMPORTANT] Safety Rule: You MUST obtain explicit user confirmation before making non-emulator database changes. You MUST mention this safety requirement when providing commands or instructions that modify the database structure or data.

Quick Recipes

1. Querying Data

Use SQL for complex transforms or aggregations and key-value APIs for simpler query patterns. Note: Use exact match, prefix (_key LIKE 'myprefix%'), or range predicates on _key to avoid expensive unbounded scans. Recommend explicit row ranges (_key BETWEEN 'start' AND 'end') as a more performant alternative to prefix matches where possible.

If expensive scans (either unbounded or prefix or range queries scanning a large range) are unavoidable due to multiple access patterns that can’t all be accommodated in a single schema, consider one of these two options:

  • If the query will be used in user facing and/or latency sensitive applications, use continuous materialized views with keys optimized for the additional access patterns.
  • If secondary access patterns are infrequent, batch patterns like ETL, ML model training or analytical read-only tasks, use Bigtable Data Boost instead.

2. Manipulating Data

Use key-value APIs for insert, update, increment and delete operations. SQL API is read-only.

3. Data Model Definition (DDL)

SQL API doesn't support DDL operations. Table creation, deletion, updates should be made using gcloud CLI. Logical Views and Continuous Materialized Views are defined as SQL queries but they must be created using gcloud CLI.

Reference Guides

Common Workflows

Schema Evolution (DevOps)

  1. Prefer Terraform for production schema changes to prevent accidental data loss.

  2. For manual cbt changes, first check the existing state by listing the table's column families and GC policies before proposing any modifications:

    cbt ls {table}
    

    If modifications are needed, create the family or update the GC policy:

    
    
자주 묻는 질문

어떤 프로그래밍 언어를 다루나요?

Java, Go, Python 클라이언트 라이브러리를 다루며, 운영 환경에는 Java나 Go를 권장합니다.

핫스팟은 어떻게 찾나요?

Cloud Console의 Key Visualizer를 기본 진단 도구로 추천합니다.

Cloud SQL에도 해당하나요?

아닙니다. 일반 SQL 데이터베이스가 아니라 Bigtable을 위한 것입니다.

상세 정보

작성자의 원본 설명

Assists in provisioning instances/tables, designing performant schemas, and querying data in Bigtable. Use when designing Bigtable row keys, configuring column families, writing SQL queries or client library code (Java, Go, Python) for Bigtable, or diagnosing performance/hotspotting issues. Also use when provisioning Bigtable clusters using gcloud or cbt CLIs. Don't use for generic Cloud SQL administration.

repo: google/skills

인기도

GitHub 스타
22k
순위
#10232
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬