quantranhong1999 commented on code in PR #1673:
URL: https://github.com/apache/james-project/pull/1673#discussion_r1295392847


##########
mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraQuotaModule.java:
##########
@@ -68,5 +70,26 @@ public interface CassandraQuotaModule {
             .withPartitionKey(CassandraGlobalMaxQuota.KEY, TEXT)
             .withColumn(CassandraGlobalMaxQuota.STORAGE, BIGINT)
             .withColumn(CassandraGlobalMaxQuota.MESSAGE, BIGINT))
+
+        .table(CassandraQuotaLimit.TABLE_NAME)
+        .comment("Holds quota limits.")
+        .options(options -> options
+            .withCaching(true, 
rows(CassandraConstants.DEFAULT_CACHED_ROW_PER_PARTITION)))
+        .statement(statement -> types -> statement
+            .withPartitionKey(CassandraQuotaLimit.QUOTA_COMPONENT, TEXT)
+            .withPartitionKey(CassandraQuotaLimit.QUOTA_SCOPE, TEXT)
+            .withPartitionKey(CassandraQuotaLimit.IDENTIFIER, TEXT)
+            .withClusteringColumn(CassandraQuotaLimit.QUOTA_TYPE, TEXT)

Review Comment:
   Yes, you are right. We should know the scope while querying quota limits.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to