Re: [hibernate-dev] Health check status API

2018-06-01 Thread Andrej Golovnin
Hi Sanne, whatever you consider to implement in Hibernate ORM/Search/OMG I think you should use/follow the MicroProfile Health spec [1]. As far as I know WildFly Swarm supports already this spec. Best regards, Andrej Golovnin [1] https://github.com/eclipse/microprofile-health/ > On 31.

Re: [hibernate-dev] SingleTableEntityPersister memory footprint in 5.3

2018-05-08 Thread Andrej Golovnin
version ever because I have more patches. But this is another story. :-) ) Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] SingleTableEntityPersister memory footprint in 5.3

2018-05-08 Thread Andrej Golovnin
gt; This is an old patch. The current version does not extend CHM and even does not use it. It adds ca. 30 lines of code and modifies two classes to achieve the most memory savings. And Sanne, it is not needed to be sorry. Thanks to GIT I can apply my patches to the new version of Hibernate with

Re: [hibernate-dev] SingleTableEntityPersister memory footprint in 5.3

2018-05-07 Thread Andrej Golovnin
roblems before you ship a new version of Hibernate. It should be a good job for a student. :-) Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] SingleTableEntityPersister memory footprint in 5.3

2018-05-07 Thread Andrej Golovnin
s. So what? > > If we can come up with some patches, it would be nice if you could test them > with your workload. When you are ready, sent me links to the pull requests and I'll test them. Best regards, Andrej Golovnin ___ hiberna

Re: [hibernate-dev] SingleTableEntityPersister memory footprint in 5.3

2018-05-06 Thread Andrej Golovnin
ity classes to mapped supper-classes. This may help to reduce memory consumption too. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Feature Request: Encrypt sensitive data with an "encrypted store/filter"

2017-06-23 Thread Andrej Golovnin
Hi Sebastian, instead of RDBMS and Hibernate and/or your own solution you can just use a tool that was specifically designed to store/access secrets in a secure manner, for example this one: https://www.vaultproject.io/ Best regards, Andrej Golovnin

Re: [hibernate-dev] 5.2 Java 8 Optional support

2016-05-04 Thread Andrej Golovnin
952/uses-for-java8-optional?answertab=votes#tab-top IntelliJ IDEA warns you for example when you use Optional as field type. Best regards, Andrej Golovnin > 2. Allow retrieving Objects from Hibernate as Optional > > The second part is really about allowing users to request th

Re: [hibernate-dev] Lucene 5.4 available: include it in a micro release?

2015-12-17 Thread Andrej Golovnin
emoved. They are marked as deprecated. Please read the JavaDocs (http://lucene.apache.org/core/5_4_0/core/org/apache/lucene/search/Query.html) and/or source code. > Andrej: are you needing that upgrade soon? Any interesting reasons? I don’t need it soon. And I’m just interested in per

Re: [hibernate-dev] Lucene 5.4 available: include it in a micro release?

2015-12-16 Thread Andrej Golovnin
ernate Search 5.5. > > What do you all think about that? Yes, please upgrade. Best regards Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-08-12 Thread Andrej Golovnin
Hi Gunnar, > Should we consider to drop this feature in HS 6? -1, we use it, I think, in at least 3 places in our application. Removing it would make our code more complicated. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-

Re: [hibernate-dev] Closed pull requests

2014-12-07 Thread Andrej Golovnin
> On 02.12.2014, at 00:31, Steve Ebersole wrote: > > I am finishing up the initial 5.0 work for master right now. I will work on > these next. Ping me at the end of the week so I dont forget :) Ping. :) > > On Mon, Dec 1, 2014 at 3:07 PM, Andrej Golovnin wrote: >

Re: [hibernate-dev] Closed pull requests

2014-12-01 Thread Andrej Golovnin
> They should get moved to the 4.3-based master. I think I found the relevant > issues: > > * Oracle12cDialect - https://hibernate.atlassian.net/browse/HHH-9044 > * PostgreSQL92Dialect & PostgreSQL94Dialect - > https://hibernate.atlassian.net/browse/HHH-9167 > > I have reopened them and targe

Re: [hibernate-dev] Closed pull requests

2014-11-27 Thread Andrej Golovnin
dialects: Oracle12cDialect PostgreSQL92Dialect PostgreSQL94Dialect Are you going to restore this dialects from the old master or should I add them back with the new pull request? Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.

Re: [hibernate-dev] Closed pull requests

2014-10-31 Thread Andrej Golovnin
> Here are mines: I mean from me. I should not write emails early in the morning. I was still asleep. :-) > https://github.com/hibernate/hibernate-orm/pull/779 > https://github.com/hibernate/hibernate-orm/pull/782 > https://github.com/hibernate/hibernate-orm/pull/777 > > > > Overall, checking

Re: [hibernate-dev] Closed pull requests

2014-10-30 Thread Andrej Golovnin
-orm/pull/777 > > Overall, checking that the PR still applies is a good idea too. I'll do that on the weekend. > > On Thu, Oct 30, 2014 at 5:34 PM, Andrej Golovnin wrote: > > > On 30.10.2014, at 23:15, Steve Ebersole wrote: > > > > Well maybe rather than

[hibernate-dev] Closed pull requests

2014-10-30 Thread Andrej Golovnin
ng any new pull requests in the future? Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Memory consumption

2012-05-17 Thread Andrej Golovnin
uot; slots +1 for any of the above but only when we use "IN"-clause. Best regards Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Memory consumption

2012-05-17 Thread Andrej Golovnin
plain output: Query: SELECT * FROM test WHERE oid IN (100, 101, 102, null, null, null); "Index Scan using test_pkey on public.test (cost=0.00..29.69 rows=3 width=9) (actual time=0.023..0.033 rows=3 loops=1)" " Output: oid, ttt&

Re: [hibernate-dev] Memory consumption

2012-05-17 Thread Andrej Golovnin
Hi Eric, > One option we use on our uPortal installs is to enable > -XX:+UseCompressedStrings The support for compressed strings were removed in JDK 7. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Andrej Golovnin
t was 'I', you will see an error message, when the statement is executed. I personally don't think, that someone would use non ASCII letters for names of database objects. But who knows. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Andrej Golovnin
eeded to set hibernate.default_batch_fetch_size to 16 or maybe the lower value would also give us decent performance. Best regards Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Andrej Golovnin
Hi Scott, > Validation-mode is part of the JPA 2.0 spec and its not a property. > > Try adding: > > NONE you are absolutely right. I think I was blind. I don't understand how could I overlook it. Thanks! Best regards, Andrej Golovnin _

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Andrej Golovnin
assumes that the validation mode would be defined in the persistence.xml by the tag "validation-mode". This tag has been added in JPA 2.1 which is not yet final. Solution: add NONE to persistence.xml, although it violates the persistence_2_0.xsd schema. At least it

Re: [hibernate-dev] Memory consumption

2012-05-15 Thread Andrej Golovnin
.listeners.envers.autoRegister" for Validator? I would like to disable Validator completely as it produces too much garbage (look at the pictures) when the application is deployed. Best regards Andrej Golovnin ___ hibernate-dev mailing list hib

Re: [hibernate-dev] Memory consumption

2012-05-15 Thread Andrej Golovnin
Hi Sanne, > Andrej, what's the overall size you would save by dropping the > Configuration object? 16187776 bytes. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailm

Re: [hibernate-dev] Memory consumption

2012-05-15 Thread Andrej Golovnin
created in Configuration#buildSessionFactory() (lines 1770-1781) - indirect reference from inner class created in constructor of SessionFactoryImpl (lines 230-253) Best regards Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Memory consumption

2012-05-12 Thread Andrej Golovnin
memory) during creation of SessionFactoryImpl. But it should help to reduce memory if we use it wherever it makes sense. What do you think? BTW, what is the purpose of CollectionHelper.EMPTY_LIST? Why don't you use Collections.EMPTY_LIST? That's all for

Re: [hibernate-dev] Memory consumption

2012-05-12 Thread Andrej Golovnin
#x27;t use Validator. None of our classes has Validator related annotations So why they are loaded at all? I have tried to exclude this modules in jboss-deployment-structure.xml by adding following exclusions: But it does not seem to wor

Re: [hibernate-dev] Memory consumption

2012-05-12 Thread Andrej Golovnin
your persistence.xml. No problem. Here it is: java:/MyDS Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate

Re: [hibernate-dev] Memory consumption

2012-05-10 Thread Andrej Golovnin
finishes or consider using LinkedList. In my case the #seconPasses has the size of 0. But the backend array has the length of ca. 27000. With this change you will not save a lot of memory, but I welcome every single byte I can get. :-) Best regards Andrej Golovnin __

Re: [hibernate-dev] Memory consumption

2012-05-09 Thread Andrej Golovnin
Hi, it seems that screen shots were stripped by the mailing list software. I have uploaded them to flickr. Here are the links: http://www.flickr.com/photos/78207256@N07/7166944408/in/photostream http://www.flickr.com/photos/78207256@N07/7166945108/in/photostream Best regards Andrej Golovnin On

[hibernate-dev] Memory consumption

2012-05-09 Thread Andrej Golovnin
g hundreds of users. And now using the same memory settings I can just deploy the application. :-( Best regards Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-09 Thread Andrej Golovnin
or Partner would contain the field OID from Partner indexed with NOT_ANALYZED_NO_NORMS and it will contain also the field "defaultAddress.OID". But the field "defaultAddress.OID" would have norms. This is what I see at least with Luke

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Andrej Golovnin
enefit this would resolve the concerns raised by some > users about having their domain model need to "depend" on our > annotations at compile time. We have no problem to depend on your annotations at compile time. :-) Best regards, Andrej Golovnin ___

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Andrej Golovnin
Hibernate Search and Hibernate helped us to create a really cool product, so kudos to all who have contributed to this great projects! Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [HSEARCH] Worker Configuration

2012-05-08 Thread Andrej Golovnin
tion server with the new Hibernate Search and our application and I have seen this message more than 100 times in the log file. I doubt it should be logged in the constructor. IMHO a static initialization block would be a better place. Best regards, Andrej Golovnin

Re: [hibernate-dev] [HSEARCH] Worker Configuration

2012-05-08 Thread Andrej Golovnin
e directories correctly, but I agree let's > change that to INFO. Could you open a JIRA, and maybe you could patch > the code and send a pull request? OK, I will do it. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-07 Thread Andrej Golovnin
ution would be OK for me. What do you think? Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [HSEARCH] Worker Configuration

2012-05-07 Thread Andrej Golovnin
rectories (btw. IMHO it should be logged with info level and not warning. in other case we must configure nagios to ignore this warnings.). For me it is pretty useless information. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] [HSEARCH] Worker Configuration

2012-05-06 Thread Andrej Golovnin
on the issue HSEARCH-761. Could you please verify what is the right property name and either correct the Hibernate Search Guide or change the property name in the Environment class to the old one. Thanks in advance! Best regards Andrej Golovnin ___ h