This is an automated email from the ASF dual-hosted git repository.

virajjasani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/phoenix-adapters.git


The following commit(s) were added to refs/heads/main by this push:
     new 5405441  Reduce update cache frequency to 1 min
5405441 is described below

commit 540544153d3898097bbfcd936a9e178e43c409f8
Author: Palash Chauhan <[email protected]>
AuthorDate: Tue Feb 10 15:59:34 2026 -0800

    Reduce update cache frequency to 1 min
---
 .../src/test/java/org/apache/phoenix/ddb/TestUtils.java             | 2 +-
 .../main/java/org/apache/phoenix/ddb/utils/AsyncIndexManager.java   | 6 +++---
 .../src/main/resources/phoenix-table-options.properties             | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java 
b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java
index bac8967..b884759 100644
--- a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java
+++ b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java
@@ -494,7 +494,7 @@ public class TestUtils {
             PTable table = phoenixConnection.getTable(
                     new PTableKey(phoenixConnection.getTenantId(), 
fullTableName));
             Assert.assertFalse(table.isStrictTTL());
-            Assert.assertEquals(1800000, table.getUpdateCacheFrequency());
+            Assert.assertEquals(60000, table.getUpdateCacheFrequency());
             TableDescriptor td = phoenixConnection.getQueryServices()
                     .getTableDescriptor(fullTableName.getBytes());
             Assert.assertEquals(mergeEnabled, td.isMergeEnabled());
diff --git 
a/phoenix-ddb-utils/src/main/java/org/apache/phoenix/ddb/utils/AsyncIndexManager.java
 
b/phoenix-ddb-utils/src/main/java/org/apache/phoenix/ddb/utils/AsyncIndexManager.java
index 9fc1cc9..88d6828 100644
--- 
a/phoenix-ddb-utils/src/main/java/org/apache/phoenix/ddb/utils/AsyncIndexManager.java
+++ 
b/phoenix-ddb-utils/src/main/java/org/apache/phoenix/ddb/utils/AsyncIndexManager.java
@@ -50,9 +50,9 @@ public class AsyncIndexManager {
             + "AND (TO_NUMBER(CURRENT_TIME()) - LAST_DDL_TIMESTAMP) > %d";
 
     public static void run(Connection connection) throws SQLException {
-        activateIndexesForBuilding(connection, 1800010);
-        dropDisabledIndexes(connection, 1800010);
-        runIndexTool(connection, 1860000);
+        activateIndexesForBuilding(connection, 90010);
+        dropDisabledIndexes(connection, 90010);
+        runIndexTool(connection, 90010);
     }
 
     public static void activateIndexesForBuilding(Connection conn, int 
minAgeMs) throws SQLException {
diff --git 
a/phoenix-ddb-utils/src/main/resources/phoenix-table-options.properties 
b/phoenix-ddb-utils/src/main/resources/phoenix-table-options.properties
index 90e8dab..a8a44ee 100644
--- a/phoenix-ddb-utils/src/main/resources/phoenix-table-options.properties
+++ b/phoenix-ddb-utils/src/main/resources/phoenix-table-options.properties
@@ -1,6 +1,6 @@
 # Phoenix Table Configuration Options
 IS_STRICT_TTL=false
-UPDATE_CACHE_FREQUENCY=1800000
+UPDATE_CACHE_FREQUENCY=60000
 phoenix.max.lookback.age.seconds=97200
 hbase.hregion.majorcompaction=172800000
 org.apache.hadoop.hbase.index.lazy.post_batch.write=true
\ No newline at end of file

Reply via email to