-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use hindex for scanning data? #49
Comments
just like before, if you add filter which include the index column, the hindex can get it. No need to add any code in client. |
Need not make any client changes to make use of index. Internally we have filter evaluator to check whether to make use of index or not. |
now i have used 3 filters to filter data ,and three cols all have index, |
Can u bit more clear your table schema and query? Total how many rows of data with you? |
the table with a CF:"info",and 17 cols under "info", and i create index on every col at the time i creating the table, hbase-site.xm is rightl: It's take almost 40 seconds to get result for 2million rows. |
So the total data on which scan happened is 2 million and data satisfying the condition is less than that? Or the actual fetched data is 2 million. Just trying to know the data size. |
the cluster with just 3 nodes,. |
None of the filter do full scan on index table. |
i am sorry to put forward such unprofessional problem ..>.<,
|
So your total rows count is 2 million. Can you tell me how many rows satisfy above said condition (col1=? AND col2=?) |
within 10 rows satisfy above said condition,and it spends 40 seconds getting results.all cols have indexes.. |
'qx', {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE true 'qx_idx', {METHOD => 'table_att', MAX_FILESIZE => ' true |
Only 10 rows and taking 40 secs seems too much ! Do u have below way |
yeah ,i think so , use filters: |
i got the point, and the actual col is "info:country",but after full scan the table, it get the results correctly!! |
So after correcting the name how long the query with usage of index takes? I hope it will much much lower than 40 sec. |
within 1 sec. hindex is so fast!! Action.java-------- |
There should not problem using the ResultScanner in one class or a passed in class.. Not sure what is the problem you are facing. Can you check at the logs in client and RS side? |
Hindex is prefect for indexing data in Hbase. |
i have deployed Hadoop and hindex successfully, created table and inserted data , index table also existed, so ,how do i scan for special Qualifier which has index? like the code:
get 'test','rowkey','Family:Qualifier','value' ?
The text was updated successfully, but these errors were encountered: