Ask a Question related to Coldfusion Database Access, Design and Development.
-
drmaves #1
Using Composite Indexing
I am using a simple query against a MySQL table with a selection based upon two
columns.
SELECT *
FROM clog
WHERE cfid = '#client.cfid#' AND cftoken = '#client.cftoken#'
Used together cfid and cftoken are unique so...
Considering performance, am I better off indexing both cfid and cftoken and
leaving my WHERE clause as it is above or should I create a composite index?
If I create a composite index will MySQL automaticlly use it if I use the
WHERE clause above or do I need to change the WHERE clause, if so how?
drmaves Guest
-
Losing Composite Control property that another Composite Control ...
Hi, I'm creating 2 composite controls in ASP.net. Control 1 is a Search control and control 2 is a Map control. I have added a property... -
Indexing
I searched this forum but couldn't find an answer. I've indexed a 60 page book and now need to make some corrections. How do I open the index palette... -
Possible to create a composite control that has a child control that is a validator that validates the composite control itself?
I am attempting to create a composite control which has a label, followed by an optional error message, followed by two text boxes. I have... -
`Indexing`in CS
What is it and is it important: Mac OX 10.3.3, G5 dual processor. First time I`ve used this forum so thanks to anyone that can help. Richard. -
Indexing PDF's using MS Indexing Service
Hi, I currently use MS Indexing Service to search my htm and aspx pages. I recently downloaded the IFilter tool from Adobe. When I now do a... -
Neculai Macarie #2
Re: Using Composite Indexing
> I am using a simple query against a MySQL table with a selection based
upon twoand> columns.
>
> SELECT *
> FROM clog
> WHERE cfid = '#client.cfid#' AND cftoken = '#client.cftoken#'
>
> Used together cfid and cftoken are unique so...
>
> Considering performance, am I better off indexing both cfid and cftokenindex?> leaving my WHERE clause as it is above or should I create a composite
I think in this case it's better to create a composite index on cfid and
cftoken.
I'm pretty sure you don't need to change the where clause. You can use> If I create a composite index will MySQL automaticlly use it if I use the
> WHERE clause above or do I need to change the WHERE clause, if so how?
explain to see what index will be used:
EXPLAIN
SELECT *
FROM clog
WHERE cfid = '#client.cfid#' AND cftoken = '#client.cftoken#'
--
<mack />
Neculai Macarie Guest
-
drmaves #3
Re: Using Composite Indexing
Using EXPLAIN helped a lot. I had an index on cfid, cftoken and a composite
index on cfid and cftoken. Keeping the WHERE clause the same, EXPLAIN showed
that MySQL used the composite index. Now I can delete the first two indexes and
maintain only the composite index.
drmaves Guest



Reply With Quote

