473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

View Optimization?

I just resolved a strange situation I was having with an ODBC linked SQL 7
view in an Access 2000 MDB file, and I'm trying to get some understanding as
to what happened.

The linked view was scrolling very slowly in the MDB file; however, it
scrolled very quickly when accessed through an ADP file. Theoretically,
since it's a server-side object, it should appear the same in both files,
but it didn't.

Not knowing what was causing this, I tried various options. When I decided
to try encrypting the view, I first made a copy of it, and encrypted the
copy, and linked that copy to the MDB file. It scrolled without hanging as
the original one did.

But, strangely enough: once I encrypted the copy of the view, the original
view also now scrolled quickly (about 5-10 times faster than it had been). I
even deleted the encrypted copy, and the original view still scrolled very
quickly in the MDB file.

So, it seems that there was some sort of compile/optimization issue that
kicked in when I encrypted the copy of the view -- and not just for that one
view, but for the whole database (or at least the original view and its
copy). Whatever happened, it resolved the problem with the view hanging when
scrolled in the MDB file.

So, my questions are: a) what happened? and b) is there a way to get
whatever happened to happen without having to make a copy of a view, encrypt
it, and then delete it??

Thanks for any assistance.

Neil
Jul 23 '05 #1
4 2214

"Neil" <nj****@pxdy.com> wrote in message
news:NS*****************@newsread3.news.pas.earthl ink.net...

So, my questions are: a) what happened? and b) is there a way to get
whatever happened to happen without having to make a copy of a view,
encrypt it, and then delete it??

a) Whatever happened to happen happened.

b) Try blowing on it.
Jul 23 '05 #2
Here's an additional thought regarding this. The view in question contained
a group-by subview. When I copied the main view, the copy contained the same
subview. So perhaps when I encrypted the copy of the view, something got
optimized with the subview, and, hence, the original view worked better.

That would explain why encrypting one view would affect another. But it
still wouldn't explain:

- why encrypting would cause optimization in the first place;

- why the original view had problems when attached to an MDB file, but
didn't have any problems in an ADP file;

- why I am writing this at all, since there's probably no logical
explanation for any of this. :-)

Neil
"Neil" <nj****@pxdy.com> wrote in message
news:NS*****************@newsread3.news.pas.earthl ink.net...
I just resolved a strange situation I was having with an ODBC linked SQL 7
view in an Access 2000 MDB file, and I'm trying to get some understanding
as to what happened.

The linked view was scrolling very slowly in the MDB file; however, it
scrolled very quickly when accessed through an ADP file. Theoretically,
since it's a server-side object, it should appear the same in both files,
but it didn't.

Not knowing what was causing this, I tried various options. When I decided
to try encrypting the view, I first made a copy of it, and encrypted the
copy, and linked that copy to the MDB file. It scrolled without hanging as
the original one did.

But, strangely enough: once I encrypted the copy of the view, the original
view also now scrolled quickly (about 5-10 times faster than it had been).
I even deleted the encrypted copy, and the original view still scrolled
very quickly in the MDB file.

So, it seems that there was some sort of compile/optimization issue that
kicked in when I encrypted the copy of the view -- and not just for that
one view, but for the whole database (or at least the original view and
its copy). Whatever happened, it resolved the problem with the view
hanging when scrolled in the MDB file.

So, my questions are: a) what happened? and b) is there a way to get
whatever happened to happen without having to make a copy of a view,
encrypt it, and then delete it??

Thanks for any assistance.

Neil

Jul 23 '05 #3
"Neil" <nj****@pxdy.com> wrote in message
news:UX*****************@newsread3.news.pas.earthl ink.net...
- why I am writing this at all, since there's probably no logical
explanation for any of this. :-)


Actually, I very much appreciate you sharing that a solution was found. Glad
to see that the linked view "can" perform ok...

It is certainly possible some setting, or something was cached, or saved
somewhere.

You could run through Tony's FAQ of performance issues (very few of the
apply to odbc linked tables..but you might just take a quick read...).

http://www.granite.ab.ca/access/performancefaq.htm

(I would check the track name autocorrect...and sub-data sheets settings).

Once again..thanks for provoking the discussions on this...it been well
worth the show!!!

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Jul 23 '05 #4
Actually, my posting was premature. Encrypting the view copy *did* in fact
increase performance; but I just found out why. When I encrypted the view
copy and then refreshed the original view's link, the original view's link
lost its virtual primary key. Don't know why, but that's what happened. And
I was able to reproduce this phenomenon.

So, apparently, with the virtual pk in place, the view link is slow; with
it, it's fast. I have two links to the same view in my MDB -- one with, and
one without virtual pk. One is slow, one is fast. So the virtual pk is
apparently it.

Anyway, I created this post when I thought it was a SQL optimization issue.
Now that I see it's an ODBC/linked table issue, I'm going to continue the
discussion in the original thread, "ADP vs. MDB: Speed." I will be posting
more information about this there, so if you could respond in that thread,
it would be appreciated.

Thanks,

Neil
"Albert D. Kallal" <ka****@msn.com> wrote in message
news:pLR%d.757153$8l.159195@pd7tw1no...
"Neil" <nj****@pxdy.com> wrote in message
news:UX*****************@newsread3.news.pas.earthl ink.net...
- why I am writing this at all, since there's probably no logical
explanation for any of this. :-)


Actually, I very much appreciate you sharing that a solution was found.
Glad to see that the linked view "can" perform ok...

It is certainly possible some setting, or something was cached, or saved
somewhere.

You could run through Tony's FAQ of performance issues (very few of the
apply to odbc linked tables..but you might just take a quick read...).

http://www.granite.ab.ca/access/performancefaq.htm

(I would check the track name autocorrect...and sub-data sheets settings).

Once again..thanks for provoking the discussions on this...it been well
worth the show!!!

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stacy White | last post by:
I vaguely remember seeing that PostgresSQL optimized selects on certain UNION ALL statements, so that given: CREATE VIEW orders AS SELECT '2003-01' as period, * FROM orders_2003_01 UNION ALL...
6
by: Eugene | last post by:
Summary: ---------- Updates against UNION ALL view does't do branch elimination, but rather reads all the branches (partitions). The case scenario(DB2 V8.1.4a ESE, AIX 5.2):...
3
by: bughunter | last post by:
I discover next problem I have view definition with rank() create view vTEST as select c1, c2, c3, ... -- problem area start , rank() over (order by c3) as RNK -- problem area stop from...
4
by: Neil | last post by:
I just resolved a strange situation I was having with an ODBC linked SQL 7 view in an Access 2000 MDB file, and I'm trying to get some understanding as to what happened. The linked view was...
2
by: elein | last post by:
Yes, I vacuumed. Reproduced on both 7.3.2 and 7.5. Brain dead java beans want order by clauses in views that they use. my view is: select .... from bigtable b left join lookuptable l order...
5
by: Sim Zacks | last post by:
I just did a dump and restore of my database and one of my views did not recreate. The error received was : pg_restore.exe: could not execute query: ERROR: column reference "pricinggroupid" is...
104
by: Beowulf | last post by:
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through...
0
by: Purple-D | last post by:
I have a pretty complicated query containing several columns generted via olap windowing expressions. This query without any 'filtering' where clauses would run in about 3-4 minutes. However the...
20
by: Ravikiran | last post by:
Hi Friends, I wanted know about whatt is ment by zero optimization and sign optimization and its differences.... Thank you...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.