Permalink
Browse files

queries para checar onde estão os maiores gastos sem cache (size e time)

  • Loading branch information...
1 parent d3ca926 commit c0352cabadc36bf27a9832946a60b8c36e173cf1 @ricardovaleriano ricardovaleriano committed Jul 25, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 README-pt-br.markdown
  2. +1 −1 README.markdown
View
4 README-pt-br.markdown
@@ -85,8 +85,8 @@ devolvida ao cliente, permitindo que você verifique qual seria a otimização e
Ou por método, que mostra quão importante é melhorar o método em si, uma medida mais importante:
- select resource, method, verb, etag, size*(count(method)-1)/1024 as savedKbytes, time*(count(method)-1)/1000 as savedMillis from DashUriStat where hasEtag=false and (cache is null or cache=="") group by resource, method, verb, etag order by savedKbytes, savedMillis
-
+select resource, method, (sum(size)- (select sum(avg(d.size)) from DashUriStat as d where d.resource=resource and d.method=method group by etag, sum(avg(d.size))) )/1024 as ssss,(sum(time)-avg(time))/1000 as tttt from DashUriStat where cache = '' and hadEtag = 'false' and verb='GET' group by resource, method order by resource, method
+
Analise qual otimização de cache de método você pode ganhar mais e otimize.
# Ajuda
View
2 README.markdown
@@ -84,7 +84,7 @@ If hasEtag = false, the etag is automatically generated (but not returned to the
Per method, which shows how important it is to improve one method:
- select resource, method, verb, etag, size*(count(method)-1)/1024 as savedKbytes, time*(count(method)-1)/1000 as savedMillis from DashUriStat where hasEtag=false and (cache is null or cache=="") group by resource, method, verb, etag order by savedKbytes, savedMillis
+ select resource, method, (sum(size)- (select sum(avg(d.size)) from DashUriStat as d where d.resource=resource and d.method=method group by etag, sum(avg(d.size))) )/1024 as ssss,(sum(time)-avg(time))/1000 as tttt from DashUriStat where cache = '' and hadEtag = 'false' and verb='GET' group by resource, method order by resource, method
Analyze where you can gain the most and optimize it.

0 comments on commit c0352ca

Please sign in to comment.