StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
seek() slowness
seek() slowness
Post Reply
Like
0
seek() slowness
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Keith Chisarik
Keith Chisarik
posted 17 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 939,
Visits: 40K
I have some code that loops through about 1/4 of a million records, it is taking a very long time (I stopped it after 15 minutes and it wasn't close to done).
I took out all the processing in the loop so that all it was doing was the loop with a single seek() and it was still slow. I replaced the seek() with "if 1 =2 then" and it went as expected (about 20 seconds).
I am seek()ing against a single integer field that I have an index on in SQL. Help????
Code:
searchstr = "rent_RPMrecnum = " & "'" & currow("record_number") & "'"
'If Me.RentitemsBO1.Seek(searchstr) Then
‘do nothing
Else
‘still do nothing for testing purposes
End if
Thanks.
Keith Chisarik
Sigma Data Systems
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
seek() slowness
Keith Chisarik
-
17 Years Ago
I'd tend to not use .NET for this or any procedural language. I'd try...
Greg McGuffey
-
17 Years Ago
"Utt oh", Trent called Ben. I must have done something really dumb :)...
Keith Chisarik
-
17 Years Ago
It doesn't matter that you have an index in SQL Server... it's...
StrataFrame Team
-
17 Years Ago
Greg,
Thanks but "set base SQL" doesn't mean much to me. I...
Keith Chisarik
-
17 Years Ago
I am seeking against a BO, that already has a primary key field...
Keith Chisarik
-
17 Years Ago
Ah, the PrimaryKey property of a DataTable isn't really used by us......
StrataFrame Team
-
17 Years Ago
Oh, and my sample was in C#, sorry, here's the VB:...
StrataFrame Team
-
17 Years Ago
Cool that took it from unusable to just slow (good enough to get me...
Keith Chisarik
-
17 Years Ago
Actually I get an error when calling add() on the BO after adding your...
Keith Chisarik
-
17 Years Ago
[quote][b]Keith Chisarik (04/02/2007)[/b][hr]Actually I get an error...
Keith Chisarik
-
17 Years Ago
and yes, that is the column I set to be the new PK
...
Keith Chisarik
-
17 Years Ago
[quote]Trent: /points and laughs[/quote] Not at all!!! ;) [quote]...
Trent L. Taylor
-
17 Years Ago
[quote]The reason that we have never done this is because there are...
Ben Hayat
-
17 Years Ago
By "set based" I'm referring to the way SQL does things the most...
Greg McGuffey
-
17 Years Ago
Man, if I'd just waited a few minutes, I would have see what Trent...
Greg McGuffey
-
17 Years Ago
Part of the problem is that the volume isn't in SQL exclusively, I...
Keith Chisarik
-
17 Years Ago
[quote]Dataflex table[/quote]
Good old DATAFLEX :)
Are...
Ben Hayat
-
17 Years Ago
I must be reading the old school stuff, .dat files, a file for each...
Keith Chisarik
-
17 Years Ago
PS - in 1983 I was 10 :)
Keith Chisarik
-
17 Years Ago
[quote]do I have it right?[/quote] Basically. I was not aware that...
Trent L. Taylor
-
17 Years Ago
Jeesh, you guys probably never even used a punch card! :P
Greg McGuffey
-
17 Years Ago
I did! With FORTRAN. :crazy:
Ivan George Borges
-
17 Years Ago
[quote]I did!
With FORTRAN. [Crazy] [/quote]
IBM...
Ben Hayat
-
17 Years Ago
What's a punch card? :D
StrataFrame Team
-
17 Years Ago
1983 - Keith was 10, Trent was 7, Ben was 2 -- ok I am a little older...
Steve L. Taylor
-
17 Years Ago
[quote][b]Steve L. Taylor (04/03/2007)[/b][hr]1983 - Keith was 10,...
Ivan George Borges
-
17 Years Ago
[quote][b]Steve L. Taylor (04/03/2007)[/b][hr]1983 - Keith was 10,...
Ben Hayat
-
17 Years Ago
[quote][b]Ben Hayat (04/03/2007)[/b][hr][quote]I did! With FORTRAN....
Ivan George Borges
-
17 Years Ago
[quote][b]Ivan George Borges (04/03/2007)[/b][hr][quote][b]Ben Hayat...
Ben Hayat
-
17 Years Ago
OK, back to business... Keith, if you change the column that is the...
StrataFrame Team
-
17 Years Ago
I'm going to throw out another approach. Is it possible to just...
Greg McGuffey
-
17 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search