Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3543239
D4695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D4695.diff
View Options
diff --git a/services/terraform/dynamodb-test.tf b/services/terraform/dynamodb-test.tf
--- a/services/terraform/dynamodb-test.tf
+++ b/services/terraform/dynamodb-test.tf
@@ -149,14 +149,6 @@
type = "S"
}
- global_secondary_index {
- name = "ToDeviceID-index"
- hash_key = "ToDeviceID"
- write_capacity = 10
- read_capacity = 10
- projection_type = "ALL"
- }
-
ttl {
attribute_name = "Expire"
enabled = true
diff --git a/services/terraform/dynamodb.tf b/services/terraform/dynamodb.tf
--- a/services/terraform/dynamodb.tf
+++ b/services/terraform/dynamodb.tf
@@ -149,14 +149,6 @@
type = "S"
}
- global_secondary_index {
- name = "ToDeviceID-index"
- hash_key = "ToDeviceID"
- write_capacity = 10
- read_capacity = 10
- projection_type = "ALL"
- }
-
ttl {
attribute_name = "Expire"
enabled = true
diff --git a/services/tunnelbroker/src/Database/DatabaseManager.cpp b/services/tunnelbroker/src/Database/DatabaseManager.cpp
--- a/services/tunnelbroker/src/Database/DatabaseManager.cpp
+++ b/services/tunnelbroker/src/Database/DatabaseManager.cpp
@@ -217,8 +217,6 @@
attributeValues.emplace(":valueToMatch", toDeviceID);
req.SetExpressionAttributeValues(attributeValues);
- req.SetIndexName(MessageItem::INDEX_TO_DEVICE_ID);
-
const Aws::DynamoDB::Model::QueryOutcome &outcome =
getDynamoDBClient()->Query(req);
if (!outcome.IsSuccess()) {
diff --git a/services/tunnelbroker/src/Database/MessageItem.h b/services/tunnelbroker/src/Database/MessageItem.h
--- a/services/tunnelbroker/src/Database/MessageItem.h
+++ b/services/tunnelbroker/src/Database/MessageItem.h
@@ -27,7 +27,6 @@
static const std::string FIELD_BLOB_HASHES;
static const std::string FIELD_EXPIRE;
static const std::string FIELD_CREATED_AT;
- static const std::string INDEX_TO_DEVICE_ID;
PrimaryKeyDescriptor getPrimaryKeyDescriptor() const override;
PrimaryKeyValue getPrimaryKeyValue() const override;
diff --git a/services/tunnelbroker/src/Database/MessageItem.cpp b/services/tunnelbroker/src/Database/MessageItem.cpp
--- a/services/tunnelbroker/src/Database/MessageItem.cpp
+++ b/services/tunnelbroker/src/Database/MessageItem.cpp
@@ -15,7 +15,6 @@
const std::string MessageItem::FIELD_BLOB_HASHES = "BlobHashes";
const std::string MessageItem::FIELD_EXPIRE = "Expire";
const std::string MessageItem::FIELD_CREATED_AT = "CreatedAt";
-const std::string MessageItem::INDEX_TO_DEVICE_ID = "ToDeviceID-index";
MessageItem::MessageItem(
const std::string messageID,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 10:06 AM (8 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2712588
Default Alt Text
D4695.diff (2 KB)
Attached To
Mode
D4695: [services] Tunnelbroker - Remove `ToDeviceID` index from messages table
Attached
Detach File
Event Timeline
Log In to Comment