This commit is contained in:
2020-06-04 19:24:49 +00:00
parent 5adf4aabcf
commit e68d1c48d2
5 changed files with 54 additions and 19 deletions

View File

@@ -51,6 +51,7 @@ namespace AyaNova.Api.Controllers
#if (DEBUG)
[HttpGet("collect")]
[AllowAnonymous]
public ActionResult GetCollect()
{
GC.Collect();
@@ -59,6 +60,25 @@ namespace AyaNova.Api.Controllers
return Ok();
}
[HttpGet("hammer")]
[AllowAnonymous]
public async Task<IActionResult> GetHammer()
{
//test allocation and cleanup
for (int x = 0; x < 100000; x++)
{
AyContext ct = AyaNova.Util.ServiceProviderProvider.DBContext;
var v=await ct.Widget.Where(z=>z.Serial<100).ToListAsync();
// int i = await ct.Database.ExecuteSqlRawAsync($"select * from aglobalbizsettings");
}
return Ok();
}
#endif
/// <summary>