The NSFDbCompact function works great for local databases. How could I compact a database on a remote server? Do I need to send some command to that server to do the compaction for me?
Thanks,
The NSFDbCompact function works great for local databases. How could I compact a database on a remote server? Do I need to send some command to that server to do the compaction for me?
Thanks,
Subject: NSFDbCompact works locally, what about remotely
You could simply send a remote console command to the server, to do the “load compact …” command, unless you want to write your C API program to accept also console commands, so you can use your NSDDbCompact() function directly, while it’s running as a server task.
Subject: RE: NSFDbCompact works locally, what about remotely
Thanks Mika, by chance do you know how to send a remote console command using the notes c api or notes cpp api?
Subject: RE: NSFDbCompact works locally, what about remotely
Check out the example from the C API toolkit, in \samples\advsrvr\cluster\clfunc.c, there’s a function called RemoteCommand() which uses the NSFRemoteConsole() C API call.
Subject: RE: NSFDbCompact works locally, what about remotely
I am not sure how I overlooked that function but after you pointed it out I went into my program and added it and it worked.
Thank you for your help Mika