# Index types

In order to support the described retrieval use cases, LID maintains the following indexes:

#### multihash → \[]piece cid

To look up which pieces contain a block

#### piece cid → sector information {sector ID, offset, size}

To look up which sector a piece is in

#### piece cid → map\<mulithash → block offset / size>

To look up where in the piece a block is and the block’s size

<figure><img src="https://437316145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfZMqMjrWeFXMBES7ehiI%2Fuploads%2Fz8PaELdAj4HWi3QdJr9x%2FScreenshot%202023-05-18%20at%2014.01.13.png?alt=media&#x26;token=668ab27e-33df-4dd0-b687-8894ce267da3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://437316145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfZMqMjrWeFXMBES7ehiI%2Fuploads%2FPaxZD36055G2Lis2nI31%2FScreenshot%202023-05-18%20at%2014.01.23.png?alt=media&#x26;token=c0459136-b3d5-48ca-9ba3-bab5f7161737" alt=""><figcaption></figcaption></figure>
