public int doActionviewCommentOnResource(DB db, int threadid, StringBuilder updateLog, StringBuilder readLog,int seqID, int thinkTime, boolean insertImage,  boolean warmup)
	{
		int numOpsDone = 0;
		int keyname = buildKeyName(usercount);
		keyname = activateUser(keyname);
		if(keyname == -1)
			return 0;
		incrUserRef(keyname);
		int profilekeyname = buildKeyName(usercount);
		//get resources for profilekeyname
		Vector<Integer> profilekeynameresources = createdResources[memberIdxs.get(profilekeyname)];
		if(profilekeynameresources.size() > 0){
			Random random = new Random();
			int idx = random.nextInt(profilekeynameresources.size());
			Vector<HashMap<String,ByteIterator>> cResult=new Vector<HashMap<String,ByteIterator>>();
			String resourceID ="";
			resourceID = profilekeynameresources.get(idx).toString();
			long startRead = System.nanoTime();
			int ret = db.viewCommentOnResource(keyname, profilekeyname, Integer.parseInt(resourceID), cResult);
			if(ret < 0){
				System.out.println("There is an exception in getResourceComment."+resourceID);
				System.exit(0);
			}
			long endRead = System.nanoTime();
			numOpsDone++;
			if(!warmup && enableLogging){
				readLog.append("READ,POSTCOMMENT,"+seqID+","+threadid+","+resourceID+","+startRead+","+endRead+","+cResult.size()+"\n");
				readsExist = true;
			}		
		}	
		deactivateUser(keyname);
		return numOpsDone;

	}