This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user