Skip to content

Instantly share code, notes, and snippets.

@jaimemin
Created July 14, 2025 15:14
Show Gist options
  • Select an option

  • Save jaimemin/2977e707cbfee858db6d75071b5877e9 to your computer and use it in GitHub Desktop.

Select an option

Save jaimemin/2977e707cbfee858db6d75071b5877e9 to your computer and use it in GitHub Desktop.
// 이름은 오름차순, 성은 내림차순으로 정렬하는 복합 인덱스
db.users.createIndex({ "firstname": 1, "lastname": -1 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment