james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matth...@apache.org
Subject [10/18] james-project git commit: MAILBOX-304 AttachmentV2 table should use metadata related configuration options
Date Mon, 11 Sep 2017 08:56:33 GMT
MAILBOX-304 AttachmentV2 table should use metadata related configuration options


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/2eb77307
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2eb77307
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2eb77307

Branch: refs/heads/master
Commit: 2eb7730750ad42c2e5335c05f705f5262f92f0f3
Parents: 588e164
Author: benwa <btellier@linagora.com>
Authored: Thu Sep 7 15:07:17 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Sep 7 15:07:17 2017 +0700

----------------------------------------------------------------------
 .../mailbox/cassandra/modules/CassandraAttachmentModule.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/2eb77307/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraAttachmentModule.java
----------------------------------------------------------------------
diff --git a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraAttachmentModule.java
b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraAttachmentModule.java
index b386e6a..50bee8b 100644
--- a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraAttachmentModule.java
+++ b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/modules/CassandraAttachmentModule.java
@@ -29,6 +29,7 @@ import java.util.List;
 import org.apache.james.backends.cassandra.components.CassandraModule;
 import org.apache.james.backends.cassandra.components.CassandraTable;
 import org.apache.james.backends.cassandra.components.CassandraType;
+import org.apache.james.backends.cassandra.utils.CassandraConstants;
 import org.apache.james.mailbox.cassandra.table.CassandraAttachmentTable;
 import org.apache.james.mailbox.cassandra.table.CassandraAttachmentV2Table;
 
@@ -60,6 +61,9 @@ public class CassandraAttachmentModule implements CassandraModule {
                     .addColumn(CassandraAttachmentV2Table.TYPE, text())
                     .addColumn(CassandraAttachmentV2Table.SIZE, bigint())
                     .withOptions()
+                    .compactionOptions(SchemaBuilder.leveledStrategy())
+                    .caching(SchemaBuilder.KeyCaching.ALL,
+                        SchemaBuilder.rows(CassandraConstants.DEFAULT_CACHED_ROW_PER_PARTITION))
                     .comment("Holds attachment for fast attachment retrieval. Content of
messages is stored" +
                         "in `blobs` and `blobparts` tables.")));
         types = ImmutableList.of();


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message