The use case is sending an attachment(csv) to my email service ; in the email service i will parse the csv ; each line of the csv will have values like
key1,key2,value1
I have to query the custom object based on the keys like :
Select Id,value1 from Object__c where KEY1 =:key1 and KEY2 =: key2;
and then update the value of the object. The attachment will contain around 10,000 lines , so i would have to do like 10K queries. In that case i would run into the governor limits , so is there a better way to do this ? Is Batch Apex job the direction to go ? Any links or suggestions is greatly appreciated.
Thanks.