Skip to content

Commit

Permalink
fix: fixed journal slow query
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed May 1, 2024
1 parent e094ae6 commit 1c2f26f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible/playbooks/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
args:
executable: /bin/bash
when: not pm2_result.stat.exists
# TODO: probably should remove this or make it 12-24
- name: Reload pm2 every 4 hours
become: true
become_user: deploy
Expand Down
3 changes: 2 additions & 1 deletion app/models/journals.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const Journals = new mongoose.Schema(
type: Date
},
modseq: {
type: Number
type: Number,
index: true
},
command: {
type: String,
Expand Down

0 comments on commit 1c2f26f

Please sign in to comment.