Project

General

Profile

« Previous | Next » 

Revision 5053

add performance debugging statements for dataquery action

View differences:

src/edu/ucsb/nceas/metacat/dataquery/DataQuery.java
72 72
	}
73 73

  
74 74
	public ResultSet executeQuery(String xml) throws Exception {
75
		
76
		long startTime = System.currentTimeMillis();
77
		
75 78
		// parse the query
76 79
		DataquerySpecification specification = 
77 80
			new DataquerySpecification(xml, parserName, connectionPool, endPointInfo);
78 81

  
82
		long endTime = System.currentTimeMillis();
83
		log.debug((endTime - startTime) + " ms to parse query");
84
		startTime = System.currentTimeMillis();
85
		
79 86
		// get the results
80 87
		ResultSet resultset = null;
81 88

  
......
94 101
						specification.getDataPackages());
95 102
		}
96 103

  
104
		endTime = System.currentTimeMillis();
105
		log.debug((endTime - startTime) + " ms to select results");
106
		
97 107
		return resultset;
98 108

  
99 109
	}

Also available in: Unified diff