Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Configure and optimize Azure Storage accounts, Blob, Queue, Table, and File services
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-data-tables-java.md
1# Tables — Java SDK Quick Reference23> Condensed from **azure-data-tables-java**. Full patterns (typed entities,4> batch transactions, OData filters, Cosmos DB Table API)5> in the **azure-data-tables-java** plugin skill if installed.67## Install8```xml9<dependency>10<groupId>com.azure</groupId>11<artifactId>azure-data-tables</artifactId>12<version>12.6.0-beta.1</version>13</dependency>14<dependency>15<groupId>com.azure</groupId>16<artifactId>azure-identity</artifactId>17</dependency>18```1920## Quick Start2122> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.2324```java25import com.azure.data.tables.TableServiceClientBuilder;26import com.azure.identity.DefaultAzureCredentialBuilder;27var serviceClient = new TableServiceClientBuilder()28.endpoint("<table-account-url>")29.credential(new DefaultAzureCredentialBuilder().build())30.buildClient();31```3233## Best Practices34- Partition Key Design: choose keys that distribute load evenly35- Batch Operations: use transactions for atomic multi-entity updates36- Query Optimization: always filter by PartitionKey when possible37- Select Projection: only select needed properties for performance38- Entity Size: keep entities under 1MB (Storage) or 2MB (Cosmos)39