Skip to content

Instantly share code, notes, and snippets.

@tamata78
Created May 29, 2019 07:30
Show Gist options
  • Save tamata78/c3e831aef038743b019dd18c9fbdaa68 to your computer and use it in GitHub Desktop.
Save tamata78/c3e831aef038743b019dd18c9fbdaa68 to your computer and use it in GitHub Desktop.
テーブル設計ポイント
  • Viewの中でViewは呼ばない。可読性が落ちる。
  • 抽出対象の確認
  • プライマリキーの指定は、想定レコードを一意に絞れているか確認
  • 集計対象項目は、ソートされるため、インデックスを設定
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment