WITHOUT using a view - to iterate through database keys

if there was a way - WITHOUT using a view - to iterate through database keys.

I don’t want to use a view unless there’s no alternative. Doesn’t look like its possible, but since the “view documents” in the admin appears to do this, I thought i’d double-check. I’m using the .NEt ( c#) interface if that matters.

Currently you have to use a view to iterate through the keys. But maybe there is a better way depending on the use case there might be better ways, to work around this maybe.