Which one of two ways below has better performance for transferring data between activities?
Activity1:
putExtra("id" , customerId)
Activity2:
Select on the table and fillCustomer
objectActivity1:
putExtra("customer", customer)
Activity2:
Customer customer = (Customer)getIntent().getExtras().getSerialaizable("customer");
I mean send a unique item (like id) to the next activity and then select it from data base OR send the whole object to the next activity and cast it?