You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to automatically create index's for specific additional columns when using the autoCreateSqlTable option?
For example:
varcolumnOptions=newColumnOptions{AdditionalDataColumns=newCollection<DataColumn>{newDataColumn("EventType",typeof(long))// Is there a way to auto index this column?}};Log.Logger=newLoggerConfiguration().WriteTo.MSSqlServer(connectionString:"MyConnectionString",tableName:"MyApplicationLogs",autoCreateSqlTable:true,restrictedToMinimumLevel:LogEventLevel.Information,columnOptions:columnOptions).Enrich.FromLogContext().Enrich.With<EventTypeEnricher>()// custom enricher to add additional property (see above additional column).CreateLogger();
If not, this may be a good feature to add. We will likely auto-create the table once in development, add the indexes manually, and then script the table schema's for a production deploy.
The text was updated successfully, but these errors were encountered:
BrandonClapp
changed the title
Ability to create index from ColumnOptions.DataColumn
Option to auto create index on ColumnOptions.AdditionalDataColumns
Apr 19, 2017
Is there a way to automatically create index's for specific additional columns when using the
autoCreateSqlTable
option?For example:
If not, this may be a good feature to add. We will likely auto-create the table once in development, add the indexes manually, and then script the table schema's for a production deploy.
The text was updated successfully, but these errors were encountered: