title: Should I use prefixfilter or rowkey range scan in HBase
body: <p>I don't know why it's very slow if I use prefixfilter to query. Can someone explain which is the best way to query HBase, thanks.</p>
  
  <pre><code>hbase(main):002:0&gt; scan 'userlib',{FILTER=&gt;org.apache.hadoop.hbase.filter.PrefixFilter.new(org.apache.hadoop.hbase.util.Bytes.toBytes('0000115831F8'))}
  ROW               COLUMN+CELL                                                                                                                                
  0000115831F8001   column=track:aid, timestamp=1339121507633, value=aaa                                                                                       
  1 row(s) in 41.0700 seconds
  
  hbase(main):002:0&gt; scan 'userlib',{STARTROW=&gt;'0000115831F8',ENDROW=&gt;'0000115831F9'}                                                                                        
  ROW               COLUMN+CELL                                                                                                                                
  0000115831F8001   column=track:aid, timestamp=1339121507633, value=aaa                                                                                       
  1 row(s) in 0.1100 seconds
  </code></pre>