Subject | Re: [IBO] Problem using locate |
---|---|
Author | John Costanzo |
Post date | 2006-08-15T17:33:37Z |
Hello:
I meant to say OWNERNAME. Ownername is the field that is indexed
and the query selects ownername = xxxxx.
--- In IBObjects@yahoogroups.com, Jose Ostos Turner <jostost@...>
wrote:
persons that owe a total of $2000 or more in a master grid.
PERSONSNAME, the query should be efficient, otherwise it would have
to read the entire 3M records. You mention OWNERNAME ans an index
but not PERSONSNAME. This is VERY important.
I meant to say OWNERNAME. Ownername is the field that is indexed
and the query selects ownername = xxxxx.
--- In IBObjects@yahoogroups.com, Jose Ostos Turner <jostost@...>
wrote:
>the most amount of total debts, you can do a query to select the
> 1) If the main concern is to follow up on the persons that owe
persons that owe a total of $2000 or more in a master grid.
>of this Total in a detail grid when the user changes person.
> SELECT Person, SUM(Amount) As OwesTotal
> FROM XXXXXXX
> GROUP BY Person
> ORDER BY SUM(Amount) DESC
> HAVING SUM(Amount) > 2000
>
> You can then use a detail query to show the individual amounts
>= RANKLEY ORDER ON OWNERNAME and the table is indexed by
> SELECT Person, Amount, Date, etc
> FROM XXXXXXX
> WHERE BY Person=:Person
>
> 2) If you use the query SELECT * FROM XXXXXXXX WHERE PERSONSNAME
PERSONSNAME, the query should be efficient, otherwise it would have
to read the entire 3M records. You mention OWNERNAME ans an index
but not PERSONSNAME. This is VERY important.
>the
> Regards
> Jay
>
> ----- Original Message -----
> From: John Costanzo
> To: IBObjects@yahoogroups.com
> Sent: Tuesday, August 15, 2006 10:10 AM
> Subject: Re: [IBO] Problem using locate
>
>
> I understand that you are saying BUT, this data is provided by
> state. The lawyer who uses it wants to be able to find aspecific
> person in the small file (which limits his view to persons whoowe
> over a specific amount of money) but also see all matchingrecord in
> the large file so they can see all monies owed. They don't wantto
> wast time persuing someone who owes $500 but if they owe over$2000
> they might also owe $500, $300, etc. In which case they go afterconvert
> all monies owed.
>
> This is the point I am trying to make. It is my desire to
> all of my BDE/Paradox applications to IBO but I am notnecessarily
> in control of what the client wants. Understanding that myfew
> knowledge of IBO and Client/Server program is limited I did a
> test programs. In the BDE/Paradox test I wrote a smallapplication
> with one non-databound grid, a table, and a button. The table iscode
> index on personsname and has 3 million + records. The button
> locates then first record whose onwername is Rankley then simplyRankley.
> loops, filling the grid, until the ownername is no longer
> When the button is clicked the grid is filled almost instantly.I
> then wrote a IBO test application. One databound grid, 1IBOQuery,
> 1 button. The SQL for the query is SELECT * FROM XXXXXXXX WHEREdefined
> PERSONSNAME = RANKLEY ORDER ON OWNERNAME (Ownwername is a
> index). The Grid is linked to the query. The button code simplycursor
> says query1.active := true. When I click the button the IBO
> is displayed and the program goes to never never land for almost2
> minutes before the grid is displayed. Unless I am doingsomething
> real wrong, this would mean that every time the user selected aname
> from the top grid there would be a lag of at least 2 minutes (Isay
> at least because I selected Rankley because he only had a dozenor
> so records). What would happen if I selected SMITH?wrote:
>
> --- In IBObjects@yahoogroups.com, "James N Hitz" <jamhitz@>
> >but ...
> > I have never attempted to answer a question of this nature
> always a first time.records
> >
> > In my view, it does not make any sense to have 1 million+
> showing at any one time. Realistically, one would never be ablethese
> to "see" all these records at the same time... not even 2% of
> records. In other words you "spend" resources on records youwill
> probably never use during the entire session.for an
> >
> > Assuming your user makes at least 50 searches per hour (400
> 8-hour day), and assuming each search generates an interest in100
> other records, this boils down to a hitrate of 40000 records foran
> entire day!! (so you would be utilizing only about 1.5% of your3m
> records cache). This is inefficient by any standards. Try andforming
> point it out to your end user from this perspective.
> >
> > I would suggest using a master-detail interface, and then
> some kind of "association" that would allow searching for oneperson
> to show "related" records from other people as well.date,
> >
> > An example would be an association by region, transaction
> type of transaction or some other form of "association" thatyour
> users would normally be looking out for.file
> >
> > James N Hitz
> >
> > ----- Original Message -----
> > From: Lester Caine
> > To: IBObjects@yahoogroups.com
> > Sent: Tuesday, August 15, 2006 4:03 PM
> > Subject: Re: [IBO] Problem using locate
> >
> >
> > John Costanzo wrote:
> >
> > <snip>
> > While crude conversions can be made, as you have found this is
> not the
> > idea way of working.
> >
> > > The user scrolls or searched in the small grid and the
> > > large grid follows along. In IBO this works but there is a
> many
> > > minute delay. Is there a way to establish position into a
> > > without selecting. Any help would be appriciated. Thanks.set
> >
> > You need to try building this with IB_ components rather than
> bothering
> > with the legacy stuff. It was what IBO was designed for. You
> up awrite
> > master and detail in IB_Query datasets and link them via the
> relevant
> > fields. One will track the other nicely, but when attached to
> IB_Grid
> > the system will only load those records needed. I wasted 6
> months trying
> > to convert a BDE application to IBO. It took a week to re-
> it fromsimply
> > scratch AND gain a lot of functionality that the original
> did not
> > have - such as incremental search ;)
> >
> > --
> > Lester Caine - G8HFL
> > -----------------------------
> > L.S.Caine Electronic Services - http://home.lsces.co.uk
> > Model Engineers Digital Workshop -
> > http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
> > Treasurer - Firebird Foundation Inc. -
> http://www.firebirdsql.org/index.php
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>