CData Python Connector for MongoDB

Build 25.0.9454

TypeDetectionScheme

Specifies the method for detecting metadata discovery.

Possible Values

RowScan, None, Recent

Data Type

string

Default Value

"RowScan"

Remarks

A detailed list of enumerated options outlines the methods the provider uses to examine the data. This property helps identify different fields and their data types in each document collection.

NoneSetting TypeDetectionScheme to None will return all columns as a string type. It cannot be combined with other options.
RowScanSetting TypeDetectionScheme to RowScan will scan rows to determine the data type heuristically. The RowScanDepth determines the number of rows to be scanned. It can be used in conjunction with Recent.
RecentSetting TypeDetectionScheme to Recent will instead execute the RowScan on the most recently inserted documents into the collection. This operation is more expensive and may take considerably longer to complete when dealing with large datasets.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454