MCPcopy Create free account
hub / github.com/documentdb/documentdb / ReportInsertFeatureUsage

Function ReportInsertFeatureUsage

pg_documentdb/src/commands/insert.c:1854–1877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1852
1853
1854static inline void
1855ReportInsertFeatureUsage(int batchSize)
1856{
1857 if (batchSize == 1)
1858 {
1859 ReportFeatureUsage(FEATURE_COMMAND_INSERT_ONE);
1860 }
1861 else if (batchSize <= 100)
1862 {
1863 ReportFeatureUsage(FEATURE_COMMAND_INSERT_100);
1864 }
1865 else if (batchSize <= 500)
1866 {
1867 ReportFeatureUsage(FEATURE_COMMAND_INSERT_500);
1868 }
1869 else if (batchSize <= 1000)
1870 {
1871 ReportFeatureUsage(FEATURE_COMMAND_INSERT_1000);
1872 }
1873 else
1874 {
1875 ReportFeatureUsage(FEATURE_COMMAND_INSERT_EXTENDED);
1876 }
1877}

Callers 1

CommandInsertCoreFunction · 0.85

Calls 1

ReportFeatureUsageFunction · 0.85

Tested by

no test coverage detected