title: Best approach to get a particular record from Corda Vault without Schema?
body: <p>I'm developing a CorDapp but haven't implemented the schema as it is not a good practice.</p>
  
  <p>But the code I have to get a particular record without using schema is first getting me all the states and then fetching a particular record, it is very time consuming as it is iterating through over each state object.</p>
  
  <p>DataFeed, Vault.Update> dataFeed = proxy.vaultTrack(IOUState.class);</p>
  
  <pre><code>    //this gives a snapshot of IOUState as of now. so if there are 11 IOUState as of now, this will return 11 IOUState objects
      Vault.Page&lt;IOUState&gt; snapshot = dataFeed.getSnapshot();
      for (StateAndRef&lt;IOUState&gt; state : snapshot.getStates()) {
          if (state.getState().getData().getAssetId().equals(value)) {
              cs =  state.getState().getData();
          }
      }
  </code></pre>
  
  <p>Could you please suggest better approach to fetch a particular record from corda vault without using schema and iterating through over each state object.</p>