hello everyone
I am new here and I come with a question relating to relatively bigger tables: we are using MyISAM database with may tables including the two used in the query below.
Table phptbv_calls contain during tests some 10 million records with call data for different tel extensions
Table phptbv_vport contain some 3000 tel extensions detail records
The query looks following:
SELECT CALLS_DATE, CALLS_LOCATION_NAME, CALLS_DIALLED, CALLS_VTRUNK_NAME, CALLS_SPECIAL, CALLS_SPECIALINFO, CALLS_DURATION, CALLS_PULSES, CALLS_COST, CALLS_COST2, VPORT_NR, VPORT_INFO, CALLS_SPECIAL_NR
FROM phpTBV_CALLS, phpTBV_VPORT
where CALLS_VPORT_ID = VPORT_NEWID
and CALLS_DATE > '2006.12.01'
and CALLS_DATE <= '2006.12.02'
and VPORT_NR in (2345)
order by CALLS_DATE , VPORT_NR, CALLS_DURATION
index primary is on calls_date + calls_dialled + calls_vport_id
when I use MySQLQueryBrowser the query returns 30 rows in time shown as 0,3031s (9,9303s)
1. how should I understand the two times in the result?
2. is there a way to shorten the time for a query?
looking for some help
I am new here and I come with a question relating to relatively bigger tables: we are using MyISAM database with may tables including the two used in the query below.
Table phptbv_calls contain during tests some 10 million records with call data for different tel extensions
Table phptbv_vport contain some 3000 tel extensions detail records
The query looks following:
SELECT CALLS_DATE, CALLS_LOCATION_NAME, CALLS_DIALLED, CALLS_VTRUNK_NAME, CALLS_SPECIAL, CALLS_SPECIALINFO, CALLS_DURATION, CALLS_PULSES, CALLS_COST, CALLS_COST2, VPORT_NR, VPORT_INFO, CALLS_SPECIAL_NR
FROM phpTBV_CALLS, phpTBV_VPORT
where CALLS_VPORT_ID = VPORT_NEWID
and CALLS_DATE > '2006.12.01'
and CALLS_DATE <= '2006.12.02'
and VPORT_NR in (2345)
order by CALLS_DATE , VPORT_NR, CALLS_DURATION
index primary is on calls_date + calls_dialled + calls_vport_id
when I use MySQLQueryBrowser the query returns 30 rows in time shown as 0,3031s (9,9303s)
1. how should I understand the two times in the result?
2. is there a way to shorten the time for a query?
looking for some help
Comment