Question: I'm using the RavenDB streaming API to retrieve all 355,000 `DocsToProcess` from my database instance using the following code:

```
_myDocs = new List<DocsToProcess>();
var query = RavenSession.Query<DocsToProcess>();
using (var enumerator = RavenSession.Advanced.Stream(query))
{
    while (enumerator.MoveNext())
    {
        DocsToProcess u = enumerator.Current.Document;
        _myDocs.Add(u);
     }                
}

```

However, the following exception message is thrown:

`StreamQuery does not support querying dynamic indexes. It is designed to be used with large data-sets and is unlikely to return all data-set after 15 sec of indexing, like Query() does.`

How I can correctly iterate through all elements of type `DocsToProcess` in my C# application?

Answer: 
The [documentation says explicitly for unbound results](http://ravendb.net/docs/article-page/2.5/csharp/client-api/advanced/unbounded-results):

> 
> Important side notes:
> 
> 
> * the index already exists. Creation of a index won't occur and the query error with an IndexDoesNotExistsException exception.
> 
> 
> 

And that's what your exception is saying. You have to create a [static index](http://ravendb.net/docs/article-page/2.5/csharp/client-api/querying/static-indexes/defining-static-index) for streaming results.
To get by without creating a static index, you can provide some minimal bounding like this:

```
    using (var session = store.OpenSession())
    {
        IEnumerator<StreamResult<Employee>> stream =
            session.Advanced.Stream<Employee>("employees/");
        while (stream.MoveNext())
        {
            // ....
        }
    }

```