Hi,
Can you:
1. show me your query (hql, icriteria, queryover or Linq) and the
generated query by nhibernate
2. show me the sql that you actually want
Met vriendelijke groeten,
Danny Van den Wouwer
*Software Engineer*
*PEOPLEWARE*
Duwijckstraat 17
2500 Lier - Belgium
+32 3 448.33.38 Facebook
<http://www.facebook.com/pages/Peopleware/115011795207742> Twitter
<http://twitter.com/#!/PeopleWareBE>
www.peopleware.be
Post by ééªHi Danny,
I use sql server 2012,for count(1) query will improve a lot because
it just return row_number
åš 2018幎8æ28æ¥ææäº UTC+8äžå5:04:09ïŒDanny Van den WouweråéïŒ
Post by Danny Van den WouwerGood database software knows that if you use the aggregate function
count(*) you don't want to retrieve internally all fields of all the
involved tables. So count(*) might even be slightly faster then count(1)
in those cases. It is not a good idea to change this behaviour to count(1).
Can you tell me which database server you using?
Vriendelijke groeten,
Van den Wouwer Danny
Software Engineer
Peopleware NV
www.peopleware.be
Post by Ricardo PeresYes, COUNT(1) and COUNT(*) are exactly the same.
RP
Post by Gunnar LiljasIt's certainly possible, but I don't understand why it would be an
advantage.
/G
I agree. Why don't you create an issue on
https://github.com/nhibernate/nhibernate-core? Maybe someone can pick
it up.
RP
Post by ééªHi All,
is it possiblle for nhibernate query count sql generated not
select count(*) but count(1) ?
--
You received this message because you are subscribed to the Google
Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.