RouteX Document Router Toolkit
Main Functions Types & Errors Query Language Demo Home

rxOptomizeDatabase

Optimizes a database by physically removing deleted queries. It may physically re-order the queries for speed as well. After calling rxOptimizeDatabase each query may have a new query number. It is best not to assume that these numbers will remain constant in your code. You don't need to call rxOptimizeDatabase that often. If you database grows too big though or if you are making many changes you should call it.

Synopsis

void rxOptomizeDatabase( RouteX Router, StatusCodeT *Status )

Arguments

Router The RouteX object you are deleting
Status A pointer to a value of type StatusCodeT. If an error occurs during the execution of the function a value representing the error will be stored in *Status. You should check *Status after every function call.

Returns

Nothing.

Related Functions

rxOpenRouterDatabase, rxCloseRouterDatabase, rxDeleteQuery

Example

// oldquerynumber is the query number we wish to delete



rxDeleteQuery( Router, oldquerynumber, Status );



if( *Status < 0 ) 

   return;



// after deleting a whole bunch of queries we now optimize our database



rxOptomizeDatabase( Router, Status );



if( *Status < 0 )

   return;

 

Previous Main Next Home

Copyright 2000 Lextek International