Skip to content

Commit

Permalink
Reduce user last seen update frequency
Browse files Browse the repository at this point in the history
We currently update the last seen value every 5 minutes, but this causes
the whole user row to be duplicated - bloating indices and the table.
We only use the value of last seen as a last login time, really, and so
do not need 5 minute granularity.
  • Loading branch information
jsharkey13 committed Oct 22, 2024
1 parent 92d3425 commit 6c7a252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/uk/ac/cam/cl/dtg/segue/api/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public static SchoolInfoStatus get(final boolean schoolIdProvided, final boolean
public static final int NEVER_CACHE_WITHOUT_ETAG_CHECK = 0;

public static final String ANONYMOUS_USER = "ANONYMOUS_USER";
public static final int LAST_SEEN_UPDATE_FREQUENCY_MINUTES = 5;
public static final int LAST_SEEN_UPDATE_FREQUENCY_MINUTES = 15;

/**
* Redirect response field name.
Expand Down

0 comments on commit 6c7a252

Please sign in to comment.