Search Results for

    Show / Hide Table of Contents

    Class CreateBrinIndexOptionsSyntax

    Inheritance
    object
    AbstractCreateIndexMethodOptionsSyntax
    CreateBrinIndexOptionsSyntax
    Implements
    ICreateBrinIndexOptionsSyntax
    ICreateIndexMethodOptionsSyntax
    ICreateIndexOptionsSyntax
    Inherited Members
    AbstractCreateIndexMethodOptionsSyntax.CreateIndexOptionsSyntax
    AbstractCreateIndexMethodOptionsSyntax.Unique()
    AbstractCreateIndexMethodOptionsSyntax.NonClustered()
    AbstractCreateIndexMethodOptionsSyntax.Clustered()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Builder.Create.Index
    Assembly: FluentMigrator.Extensions.Postgres.dll
    Syntax
    public class CreateBrinIndexOptionsSyntax : AbstractCreateIndexMethodOptionsSyntax, ICreateBrinIndexOptionsSyntax, ICreateIndexMethodOptionsSyntax, ICreateIndexOptionsSyntax

    Constructors

    CreateBrinIndexOptionsSyntax(ICreateIndexOptionsSyntax)

    Declaration
    public CreateBrinIndexOptionsSyntax(ICreateIndexOptionsSyntax createIndexOptionsSyntax)
    Parameters
    Type Name Description
    ICreateIndexOptionsSyntax createIndexOptionsSyntax

    Fields

    IndexAutosummarize

    Declaration
    public const string IndexAutosummarize = "PostgresBrinautosummarize"
    Field Value
    Type Description
    string

    IndexPagesPerRange

    Declaration
    public const string IndexPagesPerRange = "PostgresBrinPagesPerRange"
    Field Value
    Type Description
    string

    Methods

    Autosummarize()

    Defines whether a summarization run is invoked for the previous page range whenever an insertion is detected on the next one.

    Declaration
    public ICreateBrinIndexOptionsSyntax Autosummarize()
    Returns
    Type Description
    ICreateBrinIndexOptionsSyntax

    The next step

    Autosummarize(bool)

    Defines whether a summarization run is invoked for the previous page range whenever an insertion is detected on the next one.

    Declaration
    public ICreateBrinIndexOptionsSyntax Autosummarize(bool autosummarize)
    Parameters
    Type Name Description
    bool autosummarize

    True to enable fast autosummarize or false to disable.

    Returns
    Type Description
    ICreateBrinIndexOptionsSyntax

    The next step

    DisableAutosummarize()

    Disable the a summarization that run is invoked for the previous page range whenever an insertion is detected on the next one.

    Declaration
    public ICreateBrinIndexOptionsSyntax DisableAutosummarize()
    Returns
    Type Description
    ICreateBrinIndexOptionsSyntax

    The next step

    Fillfactor(int)

    The fillfactor for an index is a percentage that determines how full the index method will try to pack index pages.

    Declaration
    public ICreateBrinIndexOptionsSyntax Fillfactor(int fillfactor)
    Parameters
    Type Name Description
    int fillfactor

    The fillfactor value from 10 to 100 can be selected

    Returns
    Type Description
    ICreateBrinIndexOptionsSyntax

    The next step

    Remarks

    For B-trees, leaf pages are filled to this percentage during initial index build, and also when extending the index at the right (adding new largest key values). If pages subsequently become completely full, they will be split, leading to gradual degradation in the index's efficiency. B-trees use a default fillfactor of 90, but any integer value from 10 to 100 can be selected. If the table is static then fillfactor 100 is best to minimize the index's physical size, but for heavily updated tables a smaller fillfactor is better to minimize the need for page splits. The other index methods use fillfactor in different but roughly analogous ways; the default fillfactor varies between methods.

    PagesPerRange(int)

    Defines the number of table blocks that make up one block range for each entry of a BRIN index. For more information about it see: https://www.postgresql.org/docs/current/brin-intro.html

    Declaration
    public ICreateBrinIndexOptionsSyntax PagesPerRange(int range)
    Parameters
    Type Name Description
    int range

    The page per range

    Returns
    Type Description
    ICreateBrinIndexOptionsSyntax

    The next step

    Implements

    ICreateBrinIndexOptionsSyntax
    ICreateIndexMethodOptionsSyntax
    ICreateIndexOptionsSyntax

    Extension Methods

    MySqlExtensions.Using(ICreateIndexOptionsSyntax, IndexType)
    MySqlExtensions.UsingBTree(ICreateIndexOptionsSyntax)
    MySqlExtensions.UsingHash(ICreateIndexOptionsSyntax)
    PostgresExtensions.AsConcurrently(ICreateIndexOptionsSyntax)
    PostgresExtensions.AsConcurrently(ICreateIndexOptionsSyntax, bool)
    PostgresExtensions.AsOnly(ICreateIndexOptionsSyntax)
    PostgresExtensions.AsOnly(ICreateIndexOptionsSyntax, bool)
    PostgresExtensions.Fillfactor(ICreateIndexOptionsSyntax, int)
    PostgresExtensions.Filter(ICreateIndexOptionsSyntax, string)
    PostgresExtensions.Include(ICreateIndexOptionsSyntax, string)
    PostgresExtensions.Tablespace(ICreateIndexOptionsSyntax, string)
    PostgresExtensions.UniqueNullsDistinct(ICreateIndexOptionsSyntax, bool)
    PostgresExtensions.UniqueNullsNotDistinct(ICreateIndexOptionsSyntax)
    PostgresExtensions.Using(ICreateIndexOptionsSyntax, Algorithm)
    PostgresExtensions.UsingBTree(ICreateIndexOptionsSyntax)
    PostgresExtensions.UsingBrin(ICreateIndexOptionsSyntax)
    PostgresExtensions.UsingGin(ICreateIndexOptionsSyntax)
    PostgresExtensions.UsingGist(ICreateIndexOptionsSyntax)
    PostgresExtensions.UsingHash(ICreateIndexOptionsSyntax)
    PostgresExtensions.UsingSpgist(ICreateIndexOptionsSyntax)
    SqlServerExtensions.Filter(ICreateIndexOptionsSyntax, string)
    SqlServerExtensions.Include(ICreateIndexOptionsSyntax, string)
    SqlServerExtensions.Online(ICreateIndexOptionsSyntax, bool)
    SqlServerExtensions.UniqueNullsDistinct(ICreateIndexOptionsSyntax, bool)
    SqlServerExtensions.UniqueNullsNotDistinct(ICreateIndexOptionsSyntax)
    SqlServerExtensions.WithDataCompression(ICreateIndexOptionsSyntax, DataCompressionType)
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.