Hi, I know a single command in MySQL can find repeated records:
Select * from TTT t where id in (select id from TTT s group id having count(id)>1)
I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed:
Exception in thread "main" [ObjectDB 2.2.9_03] javax.persistence.PersistenceException Failed to read the value of field field image.URI.baURI using reflection (error 363) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:636) at image.cleanDB.main(cleanDB.java:19) Caused by: com.objectdb.o.UserException: Failed to read the value of field field image.URI.baURI using reflection at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.UMR.M(UMR.java:863) at com.objectdb.o.UMR.z(UMR.java:575) at com.objectdb.o.UML.v(UML.java:528) at com.objectdb.o.MMM.ag(MMM.java:1042) at com.objectdb.o.UTY.aI(UTY.java:1253) at com.objectdb.o.UTY.aH(UTY.java:1225) at com.objectdb.o.ENH.b(ENH.java:99) at com.objectdb.o.LDR.J(LDR.java:440) at com.objectdb.o.LDR.E(LDR.java:159) at com.objectdb.o.OBC.aK(OBC.java:1027) at com.objectdb.o.OBC.aI(OBC.java:930) at com.objectdb.o.OBC.UG(OBC.java:802) at com.objectdb.o.SRB.l(SRB.java:149) at com.objectdb.o.QRR.m(QRR.java:516) at com.objectdb.o.QRR.b(QRR.java:197) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) ... 1 more Caused by: java.lang.OutOfMemoryError: Java heap space at com.objectdb.o.SBT.readArray(SBT.java:156) at com.objectdb.o.ART.readStrictly(ART.java:170) at com.objectdb.o.MUT.readAndAdjust(MUT.java:498) at com.objectdb.o.UMR$P.A(UMR.java:945) at com.objectdb.o.UMR.z(UMR.java:569) ... 15 more Error opening zip file or JAR manifest missing: /E:/projects/objectdb/bin/objectdb.jar
Is there an elegant way as MySQL?
TIA
There's never been infinity. Cantor's diagonal proof is completely wrong.