add index to the esmetadata.id field