dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDependencyCheckType Enumeration

MySqlDependencyCheckType Enumeration
Determines which method MySqlDependency should use for checking tables for changes.
Syntax
'Declaration
 
Public Enum MySqlDependencyCheckType 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
 
Members
MemberDescription
ChecksumCheck using the CHECKSUM TABLE statement.
DefaultCheck using a TIMESTAMP column, if the table has such a column; otherwise, check using the CHECKSUM TABLE statement.
TimestampCheck using a TIMESTAMP column. An exception is thrown if a table to check does not have such a column.
Remarks

When specifying the method to use, you need to take the following considerations into account:

  • The CHECKSUM TABLE statement is only efficient against MyISAM tables, created with the CHECKSUM=1 clause.
  • While using timestamp columns is more efficient, in most cases it requires increasing the group_concat_max_len value.
  • If a table contains hundreds of millions of rows, and you use timestamp columns for tracking changes, 32-bit MySQL won't allow setting group_concat_max_len to a high enough value to detect changes in any of the rows, and CHECKSUM TABLE statement would probably be too slow. In this case you may need to implement your own function to track changes.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Devart.Data.MySql.MySqlDependencyCheckType

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also