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?
#yiv2576000066 #yiv2576000066 -- #yiv2576000066ygrp-mkp {border:1px solid
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2576000066
#yiv2576000066ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2576000066
#yiv2576000066ygrp-mkp #yiv2576000066hd
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}#yiv2576000066 #yiv2576000066ygrp-mkp #yiv2576000066ads
{margin-bottom:10px;}#yiv2576000066 #yiv2576000066ygrp-mkp .yiv2576000066ad
{padding:0 0;}#yiv2576000066 #yiv2576000066ygrp-mkp .yiv2576000066ad p
{margin:0;}#yiv2576000066 #yiv2576000066ygrp-mkp .yiv2576000066ad a
{color:#0000ff;text-decoration:none;}#yiv2576000066 #yiv2576000066ygrp-sponsor
#yiv2576000066ygrp-lc {font-family:Arial;}#yiv2576000066
#yiv2576000066ygrp-sponsor #yiv2576000066ygrp-lc #yiv2576000066hd {margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2576000066
#yiv2576000066ygrp-sponsor #yiv2576000066ygrp-lc .yiv2576000066ad
{margin-bottom:10px;padding:0 0;}#yiv2576000066 #yiv2576000066actions
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2576000066
#yiv2576000066activity
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2576000066
#yiv2576000066activity span {font-weight:700;}#yiv2576000066
#yiv2576000066activity span:first-child
{text-transform:uppercase;}#yiv2576000066 #yiv2576000066activity span a
{color:#5085b6;text-decoration:none;}#yiv2576000066 #yiv2576000066activity span
span {color:#ff7900;}#yiv2576000066 #yiv2576000066activity span
.yiv2576000066underline {text-decoration:underline;}#yiv2576000066
.yiv2576000066attach
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}#yiv2576000066 .yiv2576000066attach div a
{text-decoration:none;}#yiv2576000066 .yiv2576000066attach img
{border:none;padding-right:5px;}#yiv2576000066 .yiv2576000066attach label
{display:block;margin-bottom:5px;}#yiv2576000066 .yiv2576000066attach label a
{text-decoration:none;}#yiv2576000066 blockquote {margin:0 0 0
4px;}#yiv2576000066 .yiv2576000066bold
{font-family:Arial;font-size:13px;font-weight:700;}#yiv2576000066
.yiv2576000066bold a {text-decoration:none;}#yiv2576000066 dd.yiv2576000066last
p a {font-family:Verdana;font-weight:700;}#yiv2576000066 dd.yiv2576000066last p
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2576000066
dd.yiv2576000066last p span.yiv2576000066yshortcuts
{margin-right:0;}#yiv2576000066 div.yiv2576000066attach-table div div a
{text-decoration:none;}#yiv2576000066 div.yiv2576000066attach-table
{width:400px;}#yiv2576000066 div.yiv2576000066file-title a, #yiv2576000066
div.yiv2576000066file-title a:active, #yiv2576000066
div.yiv2576000066file-title a:hover, #yiv2576000066 div.yiv2576000066file-title
a:visited {text-decoration:none;}#yiv2576000066 div.yiv2576000066photo-title a,
#yiv2576000066 div.yiv2576000066photo-title a:active, #yiv2576000066
div.yiv2576000066photo-title a:hover, #yiv2576000066
div.yiv2576000066photo-title a:visited {text-decoration:none;}#yiv2576000066
div#yiv2576000066ygrp-mlmsg #yiv2576000066ygrp-msg p a
span.yiv2576000066yshortcuts
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2576000066
.yiv2576000066green {color:#628c2a;}#yiv2576000066 .yiv2576000066MsoNormal
{margin:0 0 0 0;}#yiv2576000066 o {font-size:0;}#yiv2576000066
#yiv2576000066photos div {float:left;width:72px;}#yiv2576000066
#yiv2576000066photos div div {border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}#yiv2576000066
#yiv2576000066photos div label
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2576000066
#yiv2576000066reco-category {font-size:77%;}#yiv2576000066
#yiv2576000066reco-desc {font-size:77%;}#yiv2576000066 .yiv2576000066replbq
{margin:4px;}#yiv2576000066 #yiv2576000066ygrp-actbar div a:first-child
{margin-right:2px;padding-right:5px;}#yiv2576000066 #yiv2576000066ygrp-mlmsg
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2576000066
#yiv2576000066ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2576000066
#yiv2576000066ygrp-mlmsg select, #yiv2576000066 input, #yiv2576000066 textarea
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv2576000066
#yiv2576000066ygrp-mlmsg pre, #yiv2576000066 code {font:115%
monospace;}#yiv2576000066 #yiv2576000066ygrp-mlmsg *
{line-height:1.22em;}#yiv2576000066 #yiv2576000066ygrp-mlmsg #yiv2576000066logo
{padding-bottom:10px;}#yiv2576000066 #yiv2576000066ygrp-msg p a
{font-family:Verdana;}#yiv2576000066 #yiv2576000066ygrp-msg
p#yiv2576000066attach-count span {color:#1E66AE;font-weight:700;}#yiv2576000066
#yiv2576000066ygrp-reco #yiv2576000066reco-head
{color:#ff7900;font-weight:700;}#yiv2576000066 #yiv2576000066ygrp-reco
{margin-bottom:20px;padding:0px;}#yiv2576000066 #yiv2576000066ygrp-sponsor
#yiv2576000066ov li a {font-size:130%;text-decoration:none;}#yiv2576000066
#yiv2576000066ygrp-sponsor #yiv2576000066ov li
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv2576000066
#yiv2576000066ygrp-sponsor #yiv2576000066ov ul {margin:0;padding:0 0 0
8px;}#yiv2576000066 #yiv2576000066ygrp-text
{font-family:Georgia;}#yiv2576000066 #yiv2576000066ygrp-text p {margin:0 0 1em
0;}#yiv2576000066 #yiv2576000066ygrp-text tt {font-size:120%;}#yiv2576000066
#yiv2576000066ygrp-vital ul li:last-child {border-right:none
!important;}#yiv2576000066