Project

General

Profile

ignoreCachesDiffs.patch

Octavian Adrian Gavril, 10/22/2025 07:24 AM

Download (2.57 KB)

View differences:

new/src/com/goldencode/p2j/persist/DynamicQueryHelper.java 2025-10-16 11:52:59 +0000
374 374
      String              level1Key  = getCacheKey(predicate0, null, 1);
375 375
      QueryCacheKey       cache1key  = new QueryCacheKey(level1Key, allBuffers);
376 376
      
377
      synchronized (lvl1Cache)
378
      {
379
         // check the cache for a previously constructed JAST
380
         pJast = lvl1Cache.get(cache1key);
381
      }
377
//      synchronized (lvl1Cache)
378
//      {
379
//         // check the cache for a previously constructed JAST
380
//         pJast = lvl1Cache.get(cache1key);
381
//      }
382 382
      
383 383
      if (pJast == null)
384 384
      {
......
603 603
                  // before going forward with conversion, check if we have an already prepared
604 604
                  // JAST for this AST
605 605
                  cache2key = new QueryCacheKey(level2Key[0], allBuffers);
606
                  synchronized (lvl2Cache)
607
                  {
608
                     // check the cache for a previously constructed JAST
609
                     qAst = lvl2Cache.get(cache2key);
610
                  }
606
//                  synchronized (lvl2Cache)
607
//                  {
608
//                     // check the cache for a previously constructed JAST
609
//                     qAst = lvl2Cache.get(cache2key);
610
//                  }
611 611
                  
612 612
                  // qAst for this query not found in cache, convert the pAst now
613 613
                  if (qAst == null)
......
1607 1607
            
1608 1608
            return false;
1609 1609
         }
1610
         
1610

  
1611 1611
         if (idx != i)
1612 1612
         {
1613 1613
            String errMsg = "Buffer " + realBuffer + " is not referenced in the same order in " +
new/src/com/goldencode/p2j/persist/DynamicTablesHelper.java 2025-10-14 13:18:05 +0000
1198 1198
      
1199 1199
      // check the cache first
1200 1200
      CacheKey cacheKey = new CacheKey(allFields, allIndexes);
1201
      CacheData cacheData;
1201
      CacheData cacheData = null;
1202 1202
      boolean classLoadingFailed = false;
1203 1203
      
1204
      synchronized (cacheLock)
1205
      {
1206
         cacheData = cache.get(cacheKey);
1207
      }
1204
//      synchronized (cacheLock)
1205
//      {
1206
//         cacheData = cache.get(cacheKey);
1207
//      }
1208 1208

  
1209 1209
      DmoMeta dmoMeta = null;
1210 1210
      Class<? extends DataModelObject> dmoIface = null;