Skip to content

Instantly share code, notes, and snippets.

View indication's full-sized avatar
😭
Working at office

in dow indication

😭
Working at office
View GitHub Profile
@indication
indication / rungbuf.c
Created May 19, 2017 15:44
ring buffer
typedef struct _SListBuffer {
struct _SRingBuffer * next;
void * pData;
size_t DataSize;
long int Status;
}SListBuffer;
typedef struct _SRingBuffer {
SListBuffer * ListHead;
SListBuffer * ListBottom;
@indication
indication / .gitignore
Last active May 17, 2021 16:28
BitReverse
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
@indication
indication / sqlserver_index.md
Created August 3, 2021 10:52 — forked from koirand/sqlserver_index.md
Microsoft SQL Serverのインデックスまとめ

インデックスの主なオプション

クラスター化 / 非クラスター化

  • クラスター化インデックス

    • クラスター化インデックスは、テーブルまたはビュー内のデータ行をそのキー値に基づいて並べ替え、格納します。 クラスター化インデックスは、インデックス定義に含まれる列です。 データ行自体は 1 つの順序でしか並べ替えられないので、1 つのテーブルに設定できるクラスター化インデックスは 1 つだけです。
    • テーブル内のデータ行が並べ替えられた順に格納されるのは、テーブルにクラスター化インデックスが含まれているときだけです。 テーブルにクラスター化インデックスが含まれている場合、そのテーブルをクラスター化テーブルと呼びます。 クラスター化インデックスが含まれないテーブルのデータ行は、ヒープと呼ばれる順序付けられていない構造に格納されます。
  • 非クラスター化インデックス

    • 非クラスター化インデックスは、データ行とは独立した構造になっています。 非クラスター化インデックスには、非クラスター化インデックスのキー値が含まれており、各キー値のエントリにはキー値が含まれているデータ行へのポインターが含まれています。