Skip to content

Feature Request: improve ApplySchema multi-query performance in direct strategy  #13692

@shlomi-noach

Description

@shlomi-noach

Feature Description

When ApplySchema is supplied with multiple queries, it runs a per-query loop that applies each query onto the shards. With direct strategy, we just run ExecuteFetchAsDBA.

A common scenario is when you want to bootstrap a new shard/cluster with a known schema. In that scenario, one may need to apply thousands of CREATE TABLE|VIEW statements onto the shards. Applying those one-at-a-time takes a significant toll due do network overhead.

We want to improve this performance.,

Use Case(s)

Populating new large schemas on empty shards.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions