on another table,same db, with 7 records and  12 columns takes  2.362s
select * from table2

Starting transaction...Preparing statement: ..Statement prepared (elapsed time: 
0.043s).
Executing statement...Statement executed (elapsed time: 0.000s).22475 fetches, 
6 marks, 1 reads, 6 writes.0 inserts, 0 updates, 0 deletes, 237 index, 10491 
seq.Delta memory: 37192 bytes.Total execution time: 2.362sScript execution 
finished.
I have a mysql hosting (on another provider) that support remote access don't 
know how is configured but every query is very fast,on manager or by an 
application ex:
 SELECT * FROM tabletest ORDER BY data desc 
 66 row(s) returned 0.063 sec
10 fields

thanks
      From: "'Mr. John' [email protected] [firebird-support]" 
<[email protected]>
 To: "[email protected]" <[email protected]> 
 Sent: Friday, April 14, 2017 9:29 PM
 Subject: Re: [firebird-support] Improve remote query speed on Windows Server 
2012 VPS
   
    hi.I put only 2 columns but seems the same result


      From: "'Leyne, Sean' [email protected] [firebird-support]" 
<[email protected]>
 To: "[email protected]" <[email protected]> 
 Sent: Friday, April 14, 2017 9:13 PM
 Subject: RE: [firebird-support] Improve remote query speed on Windows Server 
2012 VPS
  
          hi Min=37ms Max=37ms Avg=37ms    <SL> Does mean that but only 
selecting specific columns, your SQL executed faster?    <SL> Also, are using 
v2.5+ FBClient library on remote client?    thanks    From: "'Leyne, 
Sean'[email protected] [firebird-support]" 
<[email protected]>
To: "[email protected]" <[email protected]>
Sent: Friday, April 14, 2017 6:20 PM
Subject: RE: [firebird-support] Improve remote query speed on Windows Server 
2012 VPS      

> select * from MYTABLE where id=200 
> 
> takes 
>    Total execution time: 5.388s 
>    PLAN (MYTABLE INDEX (PK_MYTABLE)) 
> 
>   the same query executed local on the server(same db,server) takes  0.065s 
> 
> queries are done with Flamerobin,from IBExpert the same results 
> 
> How can I improve remote speed? 

SELECT the columns that you actually need. 

SELECT * is fine for debugging, but IMO a slackers approach for production 
code. 


Sean 

P.S. What is the latency/PING time of your connection to the remote server?     
  

     #yiv7401092028 #yiv7401092028 -- #yiv7401092028ygrp-mkp {border:1px solid 
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7401092028 
#yiv7401092028ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7401092028 
#yiv7401092028ygrp-mkp #yiv7401092028hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv7401092028 #yiv7401092028ygrp-mkp #yiv7401092028ads 
{margin-bottom:10px;}#yiv7401092028 #yiv7401092028ygrp-mkp .yiv7401092028ad 
{padding:0 0;}#yiv7401092028 #yiv7401092028ygrp-mkp .yiv7401092028ad p 
{margin:0;}#yiv7401092028 #yiv7401092028ygrp-mkp .yiv7401092028ad a 
{color:#0000ff;text-decoration:none;}#yiv7401092028 #yiv7401092028ygrp-sponsor 
#yiv7401092028ygrp-lc {font-family:Arial;}#yiv7401092028 
#yiv7401092028ygrp-sponsor #yiv7401092028ygrp-lc #yiv7401092028hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7401092028 
#yiv7401092028ygrp-sponsor #yiv7401092028ygrp-lc .yiv7401092028ad 
{margin-bottom:10px;padding:0 0;}#yiv7401092028 #yiv7401092028actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7401092028 
#yiv7401092028activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7401092028
 #yiv7401092028activity span {font-weight:700;}#yiv7401092028 
#yiv7401092028activity span:first-child 
{text-transform:uppercase;}#yiv7401092028 #yiv7401092028activity span a 
{color:#5085b6;text-decoration:none;}#yiv7401092028 #yiv7401092028activity span 
span {color:#ff7900;}#yiv7401092028 #yiv7401092028activity span 
.yiv7401092028underline {text-decoration:underline;}#yiv7401092028 
.yiv7401092028attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv7401092028 .yiv7401092028attach div a 
{text-decoration:none;}#yiv7401092028 .yiv7401092028attach img 
{border:none;padding-right:5px;}#yiv7401092028 .yiv7401092028attach label 
{display:block;margin-bottom:5px;}#yiv7401092028 .yiv7401092028attach label a 
{text-decoration:none;}#yiv7401092028 blockquote {margin:0 0 0 
4px;}#yiv7401092028 .yiv7401092028bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv7401092028 
.yiv7401092028bold a {text-decoration:none;}#yiv7401092028 dd.yiv7401092028last 
p a {font-family:Verdana;font-weight:700;}#yiv7401092028 dd.yiv7401092028last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv7401092028 
dd.yiv7401092028last p span.yiv7401092028yshortcuts 
{margin-right:0;}#yiv7401092028 div.yiv7401092028attach-table div div a 
{text-decoration:none;}#yiv7401092028 div.yiv7401092028attach-table 
{width:400px;}#yiv7401092028 div.yiv7401092028file-title a, #yiv7401092028 
div.yiv7401092028file-title a:active, #yiv7401092028 
div.yiv7401092028file-title a:hover, #yiv7401092028 div.yiv7401092028file-title 
a:visited {text-decoration:none;}#yiv7401092028 div.yiv7401092028photo-title a, 
#yiv7401092028 div.yiv7401092028photo-title a:active, #yiv7401092028 
div.yiv7401092028photo-title a:hover, #yiv7401092028 
div.yiv7401092028photo-title a:visited {text-decoration:none;}#yiv7401092028 
div#yiv7401092028ygrp-mlmsg #yiv7401092028ygrp-msg p a 
span.yiv7401092028yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv7401092028 
.yiv7401092028green {color:#628c2a;}#yiv7401092028 .yiv7401092028MsoNormal 
{margin:0 0 0 0;}#yiv7401092028 o {font-size:0;}#yiv7401092028 
#yiv7401092028photos div {float:left;width:72px;}#yiv7401092028 
#yiv7401092028photos div div {border:1px solid 
#666666;height:62px;overflow:hidden;width:62px;}#yiv7401092028 
#yiv7401092028photos div label 
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv7401092028
 #yiv7401092028reco-category {font-size:77%;}#yiv7401092028 
#yiv7401092028reco-desc {font-size:77%;}#yiv7401092028 .yiv7401092028replbq 
{margin:4px;}#yiv7401092028 #yiv7401092028ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv7401092028 #yiv7401092028ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv7401092028 
#yiv7401092028ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv7401092028 
#yiv7401092028ygrp-mlmsg select, #yiv7401092028 input, #yiv7401092028 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv7401092028 
#yiv7401092028ygrp-mlmsg pre, #yiv7401092028 code {font:115% 
monospace;}#yiv7401092028 #yiv7401092028ygrp-mlmsg * 
{line-height:1.22em;}#yiv7401092028 #yiv7401092028ygrp-mlmsg #yiv7401092028logo 
{padding-bottom:10px;}#yiv7401092028 #yiv7401092028ygrp-msg p a 
{font-family:Verdana;}#yiv7401092028 #yiv7401092028ygrp-msg 
p#yiv7401092028attach-count span {color:#1E66AE;font-weight:700;}#yiv7401092028 
#yiv7401092028ygrp-reco #yiv7401092028reco-head 
{color:#ff7900;font-weight:700;}#yiv7401092028 #yiv7401092028ygrp-reco 
{margin-bottom:20px;padding:0px;}#yiv7401092028 #yiv7401092028ygrp-sponsor 
#yiv7401092028ov li a {font-size:130%;text-decoration:none;}#yiv7401092028 
#yiv7401092028ygrp-sponsor #yiv7401092028ov li 
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv7401092028 
#yiv7401092028ygrp-sponsor #yiv7401092028ov ul {margin:0;padding:0 0 0 
8px;}#yiv7401092028 #yiv7401092028ygrp-text 
{font-family:Georgia;}#yiv7401092028 #yiv7401092028ygrp-text p {margin:0 0 1em 
0;}#yiv7401092028 #yiv7401092028ygrp-text tt {font-size:120%;}#yiv7401092028 
#yiv7401092028ygrp-vital ul li:last-child {border-right:none 
!important;}#yiv7401092028 

   

Reply via email to