Flushdb time complexity