Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Ma Bell is a mean mother!


devel / comp.lang.clipper.visual-objects / bBrowser and SQL delay question

SubjectAuthor
* bBrowser and SQL delay questionStavros Spanos
+* Re: bBrowser and SQL delay questionJamal
|`* Re: bBrowser and SQL delay questionStavros Spanos
| +- Re: bBrowser and SQL delay questionStefan Ungemach
| `- Re: bBrowser and SQL delay questionJamal
`- Re: bBrowser and SQL delay questiondlzc

1
bBrowser and SQL delay question

<ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1067&group=comp.lang.clipper.visual-objects#1067

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a37:902:0:b0:60d:fc23:3e03 with SMTP id 2-20020a370902000000b0060dfc233e03mr2879778qkj.464.1646407172280;
Fri, 04 Mar 2022 07:19:32 -0800 (PST)
X-Received: by 2002:ac8:5b51:0:b0:2de:4b7b:9657 with SMTP id
n17-20020ac85b51000000b002de4b7b9657mr32245609qtw.347.1646407172096; Fri, 04
Mar 2022 07:19:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 4 Mar 2022 07:19:31 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=91.138.187.61; posting-account=ZhR3xQoAAABPR0IknYsJDgjMlSKevWcp
NNTP-Posting-Host: 91.138.187.61
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
Subject: bBrowser and SQL delay question
From: stavros.spanos2@gmail.com (Stavros Spanos)
Injection-Date: Fri, 04 Mar 2022 15:19:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Stavros Spanos - Fri, 4 Mar 2022 15:19 UTC

Hi all!!

We are using a data bounded bBrowser connected with a VO SQLTable that handles a lot of data, code blocks etc.

When we are moving from row to row (with mouse or keys), it seems that a data refreshing is going on, concerning the current record (actually the records seems to be re-read from original SQL Server when we move to it).

This of course is very nice, but causes a delay of 2-3 second while we are browsing.

We have 2 questions:

• Is there a way to work more asynchronously? We need to browse without any interaction with the server and <Refresh All> when needed. Is there a way to do this?

• Is there a – kind of – “granularity” concerning thw interaction between SQL Server / SQLTable / bBrowser?? It seems like the problem gets worse with Tables with 50000-100000 rows.

Thanks in advance!

Re: bBrowser and SQL delay question

<svu1p9$4q3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1068&group=comp.lang.clipper.visual-objects#1068

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: bBrowser and SQL delay question
Date: Fri, 4 Mar 2022 16:53:44 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <svu1p9$4q3$1@dont-email.me>
References: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 4 Mar 2022 21:53:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c83c53ae5eb4174a346918abac9a4639";
logging-data="4931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a5Hpqn05ggkuSmUbJXhK2km49CCmWIMw="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Cancel-Lock: sha1:Rk3QcLTsOffSw0UrRH5muMLeuwk=
In-Reply-To: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
Content-Language: en-US
 by: Jamal - Fri, 4 Mar 2022 21:53 UTC

Make sure bBrowser:AutoRefreshTime = 0

and bBrowser:ServerType set to #SQL.

From the docs: The bBrowser optimizes the access to the data server
depending on the server type.

Jamal

On 3/4/2022 10:19 AM, Stavros Spanos wrote:
> Hi all!!
>
> We are using a data bounded bBrowser connected with a VO SQLTable that handles a lot of data, code blocks etc.
>
> When we are moving from row to row (with mouse or keys), it seems that a data refreshing is going on, concerning the current record (actually the records seems to be re-read from original SQL Server when we move to it).
>
> This of course is very nice, but causes a delay of 2-3 second while we are browsing.
>
> We have 2 questions:
>
> • Is there a way to work more asynchronously? We need to browse without any interaction with the server and <Refresh All> when needed. Is there a way to do this?
>
> • Is there a – kind of – “granularity” concerning thw interaction between SQL Server / SQLTable / bBrowser?? It seems like the problem gets worse with Tables with 50000-100000 rows.
>
> Thanks in advance!

Re: bBrowser and SQL delay question

<95426251-7169-48e5-a709-9e7492d3bc4an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1070&group=comp.lang.clipper.visual-objects#1070

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:5c83:0:b0:435:8969:57f8 with SMTP id o3-20020ad45c83000000b00435896957f8mr7111415qvh.50.1646729961689;
Tue, 08 Mar 2022 00:59:21 -0800 (PST)
X-Received: by 2002:ad4:5aa1:0:b0:435:93f4:f276 with SMTP id
u1-20020ad45aa1000000b0043593f4f276mr5442552qvg.36.1646729961517; Tue, 08 Mar
2022 00:59:21 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 8 Mar 2022 00:59:21 -0800 (PST)
In-Reply-To: <svu1p9$4q3$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=85.73.22.46; posting-account=ZhR3xQoAAABPR0IknYsJDgjMlSKevWcp
NNTP-Posting-Host: 85.73.22.46
References: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com> <svu1p9$4q3$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <95426251-7169-48e5-a709-9e7492d3bc4an@googlegroups.com>
Subject: Re: bBrowser and SQL delay question
From: stavros.spanos2@gmail.com (Stavros Spanos)
Injection-Date: Tue, 08 Mar 2022 08:59:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1713
 by: Stavros Spanos - Tue, 8 Mar 2022 08:59 UTC

Thanks for the reply Jamal!

Unfortunatelly we do not need an Autorefresh(off). It is anyway by default. Our problem is that the bBrowser autamatically re-reads the current record from the SQLTable every time the current row changes (f.e. when clicking another row).

We want this behaviour to stop because it leads to 2-3 seconds delay, something that confuses the user when browsing. So in a way we need to make the bBrowser work like "disconnected" to the Server.

Stavros

Re: bBrowser and SQL delay question

<4eadebac-7abd-4e8a-800e-67c5c58f6bb1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1071&group=comp.lang.clipper.visual-objects#1071

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:578b:0:b0:2e0:6d91:1294 with SMTP id v11-20020ac8578b000000b002e06d911294mr4717658qta.386.1646743735759;
Tue, 08 Mar 2022 04:48:55 -0800 (PST)
X-Received: by 2002:a05:620a:4307:b0:507:d5b1:f65e with SMTP id
u7-20020a05620a430700b00507d5b1f65emr9926966qko.363.1646743735500; Tue, 08
Mar 2022 04:48:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 8 Mar 2022 04:48:55 -0800 (PST)
In-Reply-To: <95426251-7169-48e5-a709-9e7492d3bc4an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=95.91.255.37; posting-account=i-F9aAoAAAA0pvxb5etomv0475oTwJyh
NNTP-Posting-Host: 95.91.255.37
References: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
<svu1p9$4q3$1@dont-email.me> <95426251-7169-48e5-a709-9e7492d3bc4an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4eadebac-7abd-4e8a-800e-67c5c58f6bb1n@googlegroups.com>
Subject: Re: bBrowser and SQL delay question
From: stefan.ungemach@bingo-ev.de (Stefan Ungemach)
Injection-Date: Tue, 08 Mar 2022 12:48:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Stefan Ungemach - Tue, 8 Mar 2022 12:48 UTC

stavros...@gmail.com schrieb am Dienstag, 8. März 2022 um 09:59:22 UTC+1:
> Thanks for the reply Jamal!
>
> Unfortunatelly we do not need an Autorefresh(off). It is anyway by default. Our problem is that the bBrowser autamatically re-reads the current record from the SQLTable every time the current row changes (f.e. when clicking another row).
>
> We want this behaviour to stop because it leads to 2-3 seconds delay, something that confuses the user when browsing. So in a way we need to make the bBrowser work like "disconnected" to the Server.
>
> Stavros

Have you tried working with a timer? I.e. overwriting bBrowser:Notify, redirect NOTIFYRECORDCHANGE to some killtimer/settimer construct and calling super:Notify() via the Dispatch method of your subclassed bBrowser (for the appropriate WM_TIMER message). That would decouple all internal logic for a moment. Problem is the refresh of the selection, but you could at least start playing around in that direction.

Re: bBrowser and SQL delay question

<6d7b7ba9-b497-4426-9cb4-10b0b286308bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1072&group=comp.lang.clipper.visual-objects#1072

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:4e41:0:b0:2e0:6753:cf73 with SMTP id e1-20020ac84e41000000b002e06753cf73mr8524409qtw.684.1646754471960;
Tue, 08 Mar 2022 07:47:51 -0800 (PST)
X-Received: by 2002:a05:6214:529a:b0:435:2459:e72a with SMTP id
kj26-20020a056214529a00b004352459e72amr12111768qvb.3.1646754471840; Tue, 08
Mar 2022 07:47:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 8 Mar 2022 07:47:51 -0800 (PST)
In-Reply-To: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6d7b7ba9-b497-4426-9cb4-10b0b286308bn@googlegroups.com>
Subject: Re: bBrowser and SQL delay question
From: dlzc1@cox.net (dlzc)
Injection-Date: Tue, 08 Mar 2022 15:47:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 20
 by: dlzc - Tue, 8 Mar 2022 15:47 UTC

On Friday, March 4, 2022 at 8:19:33 AM UTC-7, stavros...@gmail.com wrote:
> Hi all!!
>
> We are using a data bounded bBrowser connected with a VO SQLTable that
> handles a lot of data, code blocks etc.
>
> When we are moving from row to row (with mouse or keys), it seems that
> a data refreshing is going on, concerning the current record (actually the
> records seems to be re-read from original SQL Server when we move to it).

Load the displayed fields, and a record number in a short table / array. Browse the "static" table, rather then the full DBF, record by record. Only call SQL to load / reload the table, when delays are expected. Do not allow editing of a record in the columnar display (unless you want to handle that).

"Doctor, it hurts when I do this!"

David A. Smith

Re: bBrowser and SQL delay question

<t085hp$on$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1073&group=comp.lang.clipper.visual-objects#1073

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: bBrowser and SQL delay question
Date: Tue, 8 Mar 2022 12:59:22 -0500
Organization: Aioe.org NNTP Server
Message-ID: <t085hp$on$1@gioia.aioe.org>
References: <ef615acd-f046-4fd4-b56f-07254e751726n@googlegroups.com>
<svu1p9$4q3$1@dont-email.me>
<95426251-7169-48e5-a709-9e7492d3bc4an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="791"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Jamal - Tue, 8 Mar 2022 17:59 UTC

Try using bBrowser:SuspendNotification() in the PostInit() method, then
when you want to refresh, issue bBrowser:ResestNotification(), then
bBrowser:Refresh(), then suspend again.

Since notification calls are stacked, you may want to keep track via a
variable if SuspendNotification is still active, because on Window
close, you need to ResetNotification.

HTH,
Jamal

On 3/8/2022 3:59 AM, Stavros Spanos wrote:
> Thanks for the reply Jamal!
>
> Unfortunatelly we do not need an Autorefresh(off). It is anyway by default. Our problem is that the bBrowser autamatically re-reads the current record from the SQLTable every time the current row changes (f.e. when clicking another row).
>
> We want this behaviour to stop because it leads to 2-3 seconds delay, something that confuses the user when browsing. So in a way we need to make the bBrowser work like "disconnected" to the Server.
>
> Stavros

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor