OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

fast searching specified column

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
dteslenko
Newbie
Newbie


Joined: 18 Feb 2008
Posts: 2

PostPosted: Tue Apr 15, 2008 1:28 am    Post subject: fast searching specified column Reply with quote

Hello!
I have some macro that sequentially scans column in one sheet, then for each cell sequentially scans other column in other sheet for the same value and make substitution according other cells in the same row. Thus complexity is quadratic and it performs very slow on large amounts of data.
I see there's search descriptor object in OO API to perform search. Is it faster than sequential scan of a column and can its search area be narrowed to single column?
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Tue Apr 15, 2008 4:06 am    Post subject: Reply with quote

If you insist on using a spreadsheet rather than relational database, then ordinary spreadsheet formulas (VLOOKUP, INDEX with MATCH) is by far the fastest method.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group