Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Performance JPA Date: Wed, 04 Nov 2015 09:35:39 +0100 Organization: Decebal Computing Lines: 20 Message-ID: <87io5ii2lg.fsf@Equus.decebal.nl> References: <87lhagkcsh.fsf@Equus.decebal.nl> <563763d9$0$23727$e4fe514c@news.xs4all.nl> <87d1vrk20x.fsf@Equus.decebal.nl> <87ziyvhs0r.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="25727"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xmSursRjL52CIipG03JOwrJLuwXdF2ew=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:J6TpYdtf5A7V1wXGJLXIrgjRg+M= sha1:TZpjaKlMaL1gpCI1LuG+zcN7M5Q= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:32994 On Wednesday 4 Nov 2015 02:35 CET, Arne Vajhøj wrote: > On 11/3/2015 1:11 PM, Cecil Westerhof wrote: >> In principal the JPA should do about the same queries as the JDBC. >> I am busy trying to get the logging of the queries at the database >> side enabled. I hope I will succeed. > > You should also be able to log SQL statements on the Java/JPA side. > > Hibernate can do it. Various .NET ORM's can do it. It probably would be possible, but it would be best I think to have the queries that are executed when using JDBC and when using JPA. The only sure way to get this information is to run both and let the database log the queries. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof