Converts 200+ endpoint files to use queryTimed() wrapper which tracks DB query count and execution time. Restores perf dashboard files that were accidentally moved to _scripts/. Includes portal UI updates.
19 lines
460 B
Text
19 lines
460 B
Text
<cfsetting showdebugoutput="false">
|
|
<cfsetting enablecfoutputonly="true">
|
|
<cfcontent type="application/json; charset=utf-8" reset="true">
|
|
|
|
<cfscript>
|
|
qDesc = queryTimed("SHOW COLUMNS FROM Items", {}, { datasource: "payfrit" });
|
|
|
|
cols = [];
|
|
for (row in qDesc) {
|
|
arrayAppend(cols, {
|
|
"Field": row.Field,
|
|
"Type": row.Type,
|
|
"Null": row.Null,
|
|
"Default": row.Default
|
|
});
|
|
}
|
|
|
|
writeOutput(serializeJSON({ "OK": true, "Columns": cols }));
|
|
</cfscript>
|