Refactored the CAT lookup code reduced the load times from 0.5152ms to load to a mere 0.0012ms

This commit is contained in:
Peter Goodhall
2019-09-06 16:55:13 +01:00
parent 440ae1a5a2
commit 531d165d5d
2 changed files with 60 additions and 114 deletions

View File

@@ -90,6 +90,16 @@
return $query;
}
function radio_status($id) {
$this->db->select('*');
$this->db->where('id', $id);
$query = $this->db->get('cat');
return $query;
}
function delete($id) {
$this->db->where('id', $id);
$this->db->delete('cat');