Grafana Variable "influxdb" not showing all the values

Is there a limit for Variable in grafana ?

when i run the following query
#show tag values from sg with key =~ /.sg./
influxdb returns 3045 values and used the same query in grafana variable is returning a lot less.

I tried with limt as well in grafana variable still the same problem
#show tag values from sg with key =~ /.sg./ limit 4000

Any ideas ?

Thanks
SK