From: Dimitris K. <ji...@gm...> - 2004-12-09 10:10:24
|
sorry, it was my mistake it's working now On Wed, 08 Dec 2004 20:23:45 -0800, xdb...@li... <xdb...@li...> wrote: > Send XDB-users mailing list submissions to > xdb...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xdb-users > or, via email, send a message with subject or body 'help' to > xdb...@li... > > You can reach the person managing the list at > xdb...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of XDB-users digest..." > > Today's Topics: > > 1. Ntx indexes (Dimitris Kontokostas) > > --__--__-- > > Message: 1 > Date: Wed, 8 Dec 2004 14:53:38 +0200 > From: Dimitris Kontokostas <ji...@gm...> > To: xdb...@li... > Subject: [XDB-users] Ntx indexes > Reply-To: xdb...@li... > > hello, > > i am using xbase64-3.1.2, i am new to xbase and i wrote some sample > programs to test it... > so i used the create index for a pretty big file (15,7MB, 21.287 > records) using Ntx indexes > the index expression is a simple column > i 've been waiting for the following code to run for about 10+ hours > and it is still running > is this normal? > > p.s. i am using an athlon XP 2.200+ > > p.p.s > this is the code,althouth i don't thing there is anything wrong with that > xbNtx *ntx=new xbNtx(dbf); > cout << "creating index '"<<tmp.c_str()<<"'\n"; > checkExpError(ntx->CreateIndex( tmp.c_str(), buf.c_str(), > XB_NOT_UNIQUE, XB_OVERLAY ),XB_NO_ERROR,"",false); > > -- > > jimkont > > --__--__-- > > _______________________________________________ > XDB-users mailing list > XDB...@li... > https://lists.sourceforge.net/lists/listinfo/xdb-users > > End of XDB-users Digest > -- jimkont |
From: Jim <jl...@yv...> - 2004-12-10 05:01:09
|
It appears as if you need a faster computer. The infinite loop is taking too long. With a fast enough computer, I hear that an infinite loop can be completed in under 10 seconds, so you must need to upgrade. More seriously, in a word -- No. It should take seconds unless your data file is huge. If a few tens of records, milliseconds or microseconds. It's not obvious to me from you code what the problem is. I would suspect one of two things. You are misusing the call. Don't know how, but I would put my money on this one. You have found a bug in the library. Not at all unlikely, but not the way to bet until you have tried some of the code examples and recreated the bug based on them. Might be a bad build of the libraries, but not the way I would bet till other things seemed ruled out. Jim Hurlburt Yakima, WA On Wednesday 08 December 2004 08:23 pm, xdb...@li... wrote: > Send XDB-users mailing list submissions to > xdb...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xdb-users > or, via email, send a message with subject or body 'help' > to xdb...@li... > > You can reach the person managing the list at > xdb...@li... > > When replying, please edit your Subject line so it is > more specific than "Re: Contents of XDB-users digest..." > > > Today's Topics: > > 1. Ntx indexes (Dimitris Kontokostas) > > --__--__-- > > Message: 1 > Date: Wed, 8 Dec 2004 14:53:38 +0200 > From: Dimitris Kontokostas <ji...@gm...> > To: xdb...@li... > Subject: [XDB-users] Ntx indexes > Reply-To: xdb...@li... > > hello, > > i am using xbase64-3.1.2, i am new to xbase and i wrote > some sample programs to test it... > so i used the create index for a pretty big file (15,7MB, > 21.287 records) using Ntx indexes > the index expression is a simple column > i 've been waiting for the following code to run for > about 10+ hours and it is still running > is this normal? > > p.s. i am using an athlon XP 2.200+ > > p.p.s > this is the code,althouth i don't thing there is anything > wrong with that xbNtx *ntx=new xbNtx(dbf); > cout << "creating index '"<<tmp.c_str()<<"'\n"; > checkExpError(ntx->CreateIndex( tmp.c_str(), buf.c_str(), > XB_NOT_UNIQUE, XB_OVERLAY ),XB_NO_ERROR,"",false); |