public void CleanPreload( ) { BulkResultCache.Clear( ); BulkSqlQueryCache.Clear( ); using (new SecurityBypassContext( )) { BulkPreloader.TenantWarmup( ); } }
/// <summary> /// Pre-compiles an entity query so it will run more quickly when first encountered. /// </summary> public static void PrecompileEntityQuery(string requestString, string hint = null) { var rq = new EntityRequest(-1, requestString, hint ?? "PrecompileEntityQuery"); BulkSqlQueryCache.GetBulkSqlQuery(rq); }