Skip to content

Commit 6d138bc

Browse files
authored
Merge pull request #489 from topcoder-platform/test/performance-profile
feat: cache ChallengeTrack & ChallengeType to avoid repeated DynamoDB lookups
2 parents 3511187 + a1396f4 commit 6d138bc

File tree

9 files changed

+2008
-8325
lines changed

9 files changed

+2008
-8325
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ workflows:
7171
only:
7272
- develop
7373
- fix/challenge-timelines-edit-routes
74+
- test/performance-profile
7475

7576
# Production builds are exectuted only on tagged commits to the
7677
# master branch.

config/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,6 @@ module.exports = {
101101
ZENDESK_API_TOKEN: process.env.ZENDESK_API_TOKEN || '',
102102
ZENDESK_API_URL: process.env.ZENDESK_API_URL || '',
103103
ZENDESK_CUSTOM_FIELD_TAG_ID: process.env.ZENDESK_CUSTOM_FIELD_TAG_ID,
104-
ZENDESK_DEFAULT_PRIORITY: process.env.ZENDESK_DEFAULT_PRIORITY || 'high'
104+
ZENDESK_DEFAULT_PRIORITY: process.env.ZENDESK_DEFAULT_PRIORITY || 'high',
105+
INTERNAL_CACHE_TTL: process.env.INTERNAL_CACHE_TTL || 1800
105106
}

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the base image with Node.js
2-
FROM node:10.20-jessie
2+
FROM node:12.22.12-buster
33

44
# Copy the current directory into the Docker image
55
COPY . /challenge-api

0 commit comments

Comments
 (0)