akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

Get Users or Orders to slow #69

Open mmonterroca opened 4 years ago

mmonterroca commented 4 years ago

Hello

When I Get Grid orders or Users getting data it to slow, method call is about 25429 MS

[HttpGet] [Route("")] [Authorize(Policy = "AdminOnly")] public async Task GetDataForGrid([FromQuery]UsersGridFilter filter) { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); try { filter = filter ?? new UsersGridFilter(); var users = await userService.GetDataForGrid(filter); return Ok(users); } finally { Debug.WriteLine(stopwatch.ElapsedMilliseconds); }

    }