Home » Search

About COUNT

41-50 of 120Refresh
Forum
2

Insertion Speed Rate and Batch Load

.createEntityManager();                 int count = 1000000;         long startTime = System.currentTimeMillis();         em.getTransaction().begin();         for (int i = 1; i <= count; i ... () - startTime;         long rate = count / time * 1000;         System.out.println("Persisted " + rate
Forum
2

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

Guest count: " + guests.size() );   return guests;     } } I get an exception when I want ... count: 0 18:51:18,219 INFO  [stdout] (http--127.0.0.1-8080-1) persist is within an active transaction ... INFO  [stdout] (http--127.0.0.1-8080-1) persisted Guest count: 1 but immediately after getAllGuests
Forum
2

OEM licencing limitation

how is the number of persistent objects counted. We unfortunately don't have the objectdb file anymore ... (); } Could you please confirm us, how the licencing works in this case? Are only internal entities counted ... and instances of unsigned classes are counted. In this case, if test is enhanced with an OEM activation key
Forum
2

Replication Issue

");         EntityManager em = EMF.createEntityManager();         int count = 0;         while( true )         {             DummyEntity x = new DummyEntity(String.valueOf(count));             em.getTransaction ... ();             System.out.println(count +":" +x.toString());             Thread.sleep(1000);             count
Forum
2

Visibility of changes in Transaction is not visible to a JPA QL Query

go to count them; TypedQuery q = em.createQuery("SELECT COUNT(x) FROM Item x", Long.class ... howManyItemsExist(EntityManager em) {   TypedQuery q = em.createQuery("SELECT COUNT(x) FROM Item x", Long ... - FlushModeType.AUTO is specified. You are right! I was doing a count with the flush mode auto on... If I
Forum
2

Bulk Delete and Update - best practice?

count to be 0 if the database is dropped  but that doesnt seem to be the case. Could you advise ... (); em.clear(); TypedQuery q = em.createQuery("SELECT COUNT(d) from CacheData d", Long ... .createEntityManager(); q = em.createQuery("SELECT COUNT(d) from CacheData d", Long.class); rows = q
Forum
2

composite index not used in query

count(a) from Action a JOIN a.objectsInCharge a1 WHERE ((a1.classIdentifier = '(OP)' and (a1 ... : count(a). Step 5: Apply selection ----------------------- Apply selection and prepare ... , removing all unnecessary components. For example, try this query: SELECT count(a) FROM Action
Forum
2

JPQL keyword in entity - what to do?

.type.name, count(p.id)) from Product as p group by p.type.name I got this exception: com.objectdb ... q = em.createQuery( "select new pl.hplxtool.model.ResultData(p.type.name, count(p.id ... .createQuery( "select new pl.hplxtool.model.ResultData(p.type.name, p.done, count(p.id)) from
Issue
2

Persist & remove in same transaction

& persist a simple entity object, EntityManager is flushed, Transaction is not committed Count ... Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count the number of simple entity objects in the database Commit the transaction The count operations in step 3
Issue
2

Unexpected exception (Error 990) on find

% Global Value Errors ------------------- [1] Unexpected total object count: 850986 (expected 850977) [2] Unexpected total page count: 206592 (expected 206563) BTree Value Errors ------------------ [1] local.jpa.entity.ebene1a.MyEntity - Unexpected object count: 850986 (actual 850977