The execution tracer will show this as it tracks resources that goroutines
block on.
Seriously I’m just going to keep suggesting the execution tracer until you try
it :)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
On Tue, May 22, 2018 at 12:21 AM, Hawari Rahman
wrote:
> Hi Burak,
>
> Thank you for your reply,
> Inside the HydrateCollection function there are database queries (at least
> three), run using the same *sql.DB throughout the application.
>
>> Is it possible that
>> whatever connection HydrateColl
Hi Justin,
Yes, it is using index scan, which makes me even more puzzled.
On Tuesday, May 22, 2018 at 3:45:29 PM UTC+7, Justin Israel wrote:
>
>
>
> On Tue, May 22, 2018, 6:35 PM Hawari Rahman > wrote:
>
>> After some more detailed investigation, it seems the most time consuming
>> process is a
The best tool to investigate this problem is the execution tracer. It will show
you the activity of goroutines over time making is easy to spot contention.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
On Tue, May 22, 2018, 6:35 PM Hawari Rahman
wrote:
> After some more detailed investigation, it seems the most time consuming
> process is a "Select by IDs" query. So to hydrate a Collection object, I
> need to retrieve another objects through a SELECT WHERE id = ANY(?)" query
> in postgres. I'm
On Tue, May 22, 2018 at 7:12 AM Hawari Rahman
wrote:
> Is there something that I need to address in the previous code snippet?
It's necessary to analyze and understand the code to figure out if adding
concurrency makes sense. Just running many tasks in goroutines does not per
se guarantee any im
After some more detailed investigation, it seems the most time consuming
process is a "Select by IDs" query. So to hydrate a Collection object, I
need to retrieve another objects through a SELECT WHERE id = ANY(?)" query
in postgres. I'm curious on how the performance can differs greatly when
c
Hi Burak,
Thank you for your reply,
Inside the HydrateCollection function there are database queries (at least
three), run using the same *sql.DB throughout the application.
Is it possible that
> whatever connection HydrateCollection is operating on cannot handle
> multiple concurrent requests
On Mon, May 21, 2018 at 11:12 PM, Hawari Rahman
wrote:
> Hi Everyone,
>
> So for the background, I have an API for retrieving data from a database.
> For an endpoint there exists two function calls:
> - SelectCollections - for retrieving the collection records
> - HydrateCollection - for hydrating
Hi Everyone,
So for the background, I have an API for retrieving data from a database.
For an endpoint there exists two function calls:
- SelectCollections - for retrieving the collection records
- HydrateCollection - for hydrating each collections (the second function
is called on each results
10 matches
Mail list logo