I am trying to add 100K records. But aerospike c client crashes after adding 65K + records. Not sure what is wrong in following code. Following is the pseudo code.
for (long l_lUserIndex = 0; l_lUserIndex <= 1000000; l_lUserIndex++) { memset(buffer, ‘\0’, 250); sprintf(buffer, “%ld”, l_lUserIndex);
strcpy(_key, “Index”); strcat(_key, buffer);
// Once user index reaches > 65500 as_record_inita crashes. as_key_init(&key, “AAA”, “Users”, _key); as_record_inita(&rec, 3); // Code for writing to aerospike
}