I tried to make the key size (In Query operation) dynamic with "for" loop as the code below.. this was without any benefit:
for (int i=1;i<90000000; i++){
getKey.set_size(i);
getData.set_data(DDData);
getData.set_ulen(28);
getData.set_flags(DB_DBT_USERMEM);
if(SigDb.get(NULL,&getKey,&getData,0)!=DB_NOTFOUND)
Console::WriteLine(" {0},,{1}",Marshal::PtrToStringUni((IntPtr)DDData),i);
}
Marshal::FreeHGlobal(IntPtr(a));
Console::WriteLine("Finish");