# Confusion about query count

**URL:** https://community.influxdata.com/t/confusion-about-query-count/25722
**Category:** Tasks
**Tags:** query, influxdb-cloud-2-0
**Created:** [July 11, 2022, 4:39pm UTC](https://community.influxdata.com/t/confusion-about-query-count/25722 "2022-07-11T16:39:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KMansourr](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/kmansourr/32/10446_2.png) [@KMansourr](https://community.influxdata.com/u/KMansourr)
#### Post date: [July 11, 2022, 4:39pm UTC](https://community.influxdata.com/t/confusion-about-query-count/25722/1 "2022-07-11T16:39:43Z")

</div>

Hi,  
I am using influx db and it has been great so far. I’m just a little confused about how the query count works. Usually if i run a query it will add 1 as it should. But when running this task, it adds 7 more queries ? We will be using tasks a lot with influx DB so it is important for us to understand how this task counts as 7 queries when we are not even querying from our buckets/measurements:

```auto
import "experimental/json"
import "experimental/http"
import "array"

option task = {name: "TableTest", every: 1h}

// option task_option = {name: "TableTest", every: 1h, offset: 0m}
// djangoUrl = "http://127.0.0.1:8000/projects/1/dashboard/cron/"
//
// response =
// http.get(
// url: djangoUrl,
// headers:
// {
// Authorization:
// "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3MzA4MjI5LCJpYXQiOjE2NTczMDA4NjcsImp0aSI6ImE1YjAzNWUyNGExMzQ3OWI5MmRhMzhlNmIwOTY5MDRmIiwidXNlcm5hbWUiOjF9.K1-sy0ZKkkpm0cDqXLanSfHiRCvIeYg746ukzTi_dGE",
// },
// )
//
// responseBody = response.body
//
seedRow = [{_time: now()}]

//
// body = json.parse(data: responseBody)
array.from(rows: seedRow)
    |> map(
        fn: (r) => {
            return {r with _measurement: "battery_consumption",
                _field: "power_output",
                _value: 60,
            }//body.value instead of 60 normalement

        },
    )
    |> to(org: "vadimUS", bucket: "Project Test")

array.from(rows: seedRow)
    |> map(
        fn: (r) => {
            return {r with _measurement: "solar_consumption", _field: "power_output", _value: 90}
        },
    )
    |> to(org: "vadimUS", bucket: "Project Test")

array.from(rows: seedRow)
    |> map(
        fn: (r) => {
            return {r with _measurement: "grid_consumption", _field: "power_output", _value: 70}
        },
    )
    |> to(org: "vadimUS", bucket: "Project Test")

array.from(rows: seedRow)
    |> map(
        fn: (r) => {
            return {r with _measurement: "building_consumption", _field: "power_output", _value: 80}
        },
    )
    |> to(org: "vadimUS", bucket: "Project Test")

```

Is it because of the “from seed.row”?  
Also another weird occurence is when I want to look at data in the ui right here:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/9/9c98d299d3bcbb11e4efec0537da793cd2a07cd0.png)  
For some reason last time I loaded data in there (1 time) it added 49 queries to the query count  
Lastly, is there a way I can look at the query count without having to wait an hour between each update in the ui ? probably like a command I can run in the CLI?  
Thanks a lot for your help, we really enjoy working with influx db.

---

<div class="post-metadata">

### Author: ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)
#### Post date: [July 13, 2022, 9:38am UTC](https://community.influxdata.com/t/confusion-about-query-count/25722/2 "2022-07-13T09:38:15Z")

</div>

This question is data-dependent, without knowing the underlying data we can’t answer this…  
can you provide sample some sample data and what you expect out of them?

---

<div class="post-metadata">

### Author: ![KMansourr](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/kmansourr/32/10446_2.png) [@KMansourr](https://community.influxdata.com/u/KMansourr)
#### Post date: [July 19, 2022, 11:24pm UTC](https://community.influxdata.com/t/confusion-about-query-count/25722/3 "2022-07-19T23:24:36Z")

</div>

Here is some sample data

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/9/964f41314c52f1043115e433281324ded0a736d8.png)  
I just need to know if theres a way to transfer data to a bucket measurements without the query count going higher. I thought since it is a write it wouldn’t add to the query count, because when I write from python client library it in fact doesnt raise the query count. Thank you !
