This commit is contained in:
@@ -8,6 +8,10 @@ todo: enable response compression
|
||||
|
||||
todo: tag refcount
|
||||
Move this into a procedure, it's apparently quite slow now that I can see the metrics
|
||||
|
||||
|
||||
todo: I might be using List<> too much when I should be using IEnumerable instead
|
||||
read this: https://www.claudiobernasconi.ch/2013/07/22/when-to-use-ienumerable-icollection-ilist-and-list/
|
||||
|
||||
TODO: Why is this adding UTC bit to this query check the source code maybe something is up
|
||||
Schema settings mean that pg will ignore any tz specification so in theory it's ignored, but...
|
||||
|
||||
@@ -66,10 +66,45 @@ namespace AyaNova.Api.Controllers
|
||||
await Task.Delay(1500);
|
||||
//await Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
//MiniProfiler.Current.RenderPlainText()
|
||||
return Content(MiniProfiler.Current.RenderPlainText());
|
||||
|
||||
|
||||
/*
|
||||
https://github.com/MiniProfiler/dotnet/blob/95eddc7d57cee9f377419733bf18e76f3e5879e5/src/MiniProfiler/MiniProfilerHandler.cs
|
||||
|
||||
private string ResultsList(HttpContext context)
|
||||
{
|
||||
if (!AuthorizeRequest(context, isList: true, message: out string message))
|
||||
{
|
||||
return message;
|
||||
}
|
||||
var guids = Options.Storage.List(100);
|
||||
var lastId = context.Request["last-id"];
|
||||
|
||||
if (!lastId.IsNullOrWhiteSpace() && Guid.TryParse(lastId, out var lastGuid))
|
||||
{
|
||||
guids = guids.TakeWhile(g => g != lastGuid);
|
||||
}
|
||||
|
||||
return guids.Reverse()
|
||||
.Select(g => Options.Storage.Load(g))
|
||||
.Where(p => p != null)
|
||||
.Select(p => new
|
||||
{
|
||||
p.Id,
|
||||
p.Name,
|
||||
p.ClientTimings,
|
||||
p.Started,
|
||||
p.HasUserViewed,
|
||||
p.MachineName,
|
||||
p.User,
|
||||
p.DurationMilliseconds
|
||||
}).ToJson();
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user