# Foundationdb segment scan

**URL:** <https://forums.foundationdb.org/t/foundationdb-segment-scan/4609>\
**Category:** Running FoundationDB\
**Created:** [September 11, 2024, 11:48am UTC](https://forums.foundationdb.org/t/foundationdb-segment-scan/4609 "2024-09-11T11:48:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivan](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@vivan](https://forums.foundationdb.org/u/vivan)\
**Post date:** [September 11, 2024, 11:48am UTC](https://forums.foundationdb.org/t/foundationdb-segment-scan/4609/1 "2024-09-11T11:48:01Z")

</div>

How can foundationdb support shard scanning? As the underlying database, I want to use a stateless client to interact with foundationdb. Through this client, I can write fdb KV with a special prefix. However, when I want to perform shard scanning or query a specific key, I need to globally scan the entire database, which is obviously meaningless and will consume a lot of time. So is there any other way to support foundationdb shard scanning?
