[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-157) Make explicit in FAQ and doc that query.list() followed by query.getResultSize() triggers only one query
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Apr 22 14:37:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30042 ]
Emmanuel Bernard commented on HSEARCH-157:
------------------------------------------
I think somehow your index has an old value. Did you clean (erase) the index before your unit test? This should be discussed in the forum.
"In 3.0.1 the only thing cached by getHits() is hits.length() in resultSize, not the actual result size as determined by getResultList().size()."
Yes that's on purpose. the former is much cheaper than the later.
> Make explicit in FAQ and doc that query.list() followed by query.getResultSize() triggers only one query
> --------------------------------------------------------------------------------------------------------
>
> Key: HSEARCH-157
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-157
> Project: Hibernate Search
> Issue Type: Improvement
> Components: documentation
> Reporter: Emmanuel Bernard
> Priority: Minor
> Fix For: 3.0.2.GA, 3.1.0
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list