Difference between revisions of "Truxton optimize database"
Jump to navigation
Jump to search
(Created page with "This will go through tell the database to update the query statistics on all Truxton tables. =Syntax= <source lang="C"> uint32_t truxton_optimize_database( uint64_t truxton_h...") |
|||
| Line 11: | Line 11: | ||
=Return value= | =Return value= | ||
| − | Zero if the message could not be sent to the <code>maintenance</code> queue, non-zero if the message was successfully sent. | + | Zero if the [[Message Bus Messages#Optimize Database|message]] could not be sent to the <code>maintenance</code> queue, non-zero if the message was successfully sent. |
=Sample= | =Sample= | ||
Latest revision as of 08:32, 26 July 2022
This will go through tell the database to update the query statistics on all Truxton tables.
Syntax
uint32_t truxton_optimize_database( uint64_t truxton_handle );
Parameters
truxton_handle
The handle created by the truxton_create call.
Return value
Zero if the message could not be sent to the maintenance queue, non-zero if the message was successfully sent.
Sample
void get_ready_to_go_fast( uint64_t truxton )
{
if ( truxton_optimize_database( truxton ) != 0 )
{
printf( "Message sent\n" );
}
}