mos schrieb:
I posted this message twice in the past 3 days, and it never gets on
the mailing list. Why?
Here it is again:
I have a Text field that contains paragraph text and for security
reasons I need to have it encrypted. If I do this, how can I still
implement full text search on it?
Hi,
I have a table of records all of which have a timestamp against them like
2007-10-25 10:10:19, and category like red, blue etc and a unique key.
Using a SELECT statement is it possible to retrieve the count and number of
records for each day e.g 2007-10-25 for all red, and all blue etc
Hi Neil,
Try this:
SELECT LEFT(DATE_FIELD_NAME, 10), COLOR_FIELD_NAME, COUNT(T.*) AS CNT FROM
TABLE_NAME GROUP BY LEFT(DATE_FIELD_NAME, 10), COLOR_FIELD_NAME.
Post the table structure if this does not help.
Regards,
Ravi
On 10/27/07, Neil Tompkins [EMAIL PROTECTED] wrote:
Hi,
I have a
Hello,
I encountered weird problem.
I upgraded MySQL on my database on my app from 5.0 to the latest 5.1.22.
After the upgrade, the app suddenly got very slow.
A query, which was executed within about 0.1 sec, now took longer than
a few minutes.
(Actually, I don't know exactly how long it would
Hello,
I have a database that is growing at a rate of 4-5 MB per day (that number is
getting larger as well). Not too bad but I'm trying to clean up the tables to
minimize the amount of space they take up.
I have one particular table that has 2 columns:
rolID int(10) unsigned
repID int(10)
Josh wrote:
Hello,
I have a database that is growing at a rate of 4-5 MB per day (that number is
getting larger as well). Not too bad but I'm trying to clean up the tables to
minimize the amount of space they take up.
I have one particular table that has 2 columns:
rolID int(10) unsigned
mysql show create table UserReports\G
*** 1. row ***
Table: UserReports
Create Table: CREATE TABLE `UserReports` (
`rolID` int(10) unsigned NOT NULL,
`repID` int(10) unsigned NOT NULL,
PRIMARY KEY (`rolID`,`repID`),
KEY `repID`
Have you tried optimize table?
On 10/27/07, Josh [EMAIL PROTECTED] wrote:
Hello,
I have a database that is growing at a rate of 4-5 MB per day (that number is
getting larger as well). Not too bad but I'm trying to clean up the tables
to minimize the amount of space they take up.
I have
InnoDB has the following extra things, plus some things I might forget:
a) the primary key B-Tree
b) row versioning information for every row
c) 16k page size; each page might not be completely full
Those are all counted towards the table size. Actually, the primary key
B-Tree might not be;
Forgot to send the rest of 'show table status'
Name: UserReports
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 10388
Avg_row_length: 104
Data_length: 1081344
Max_data_length: 0
Index_length: 212992
Data_free: 0
Auto_increment: NULL
Neil,
Do you mean ...
SELECT DATE(datetimecol) AS date,colourcol,COUNT(*)
FROM tbl
GROUP BY date,colourcol;
PB
--
Neil Tompkins wrote:
Hi,
I have a table of records all of which have a timestamp against them like 2007-10-25 10:10:19, and category like red, blue etc and a unique key.
Baron Schwartz wrote:
I don't think it will be any better to count distinct values. I think
the query is just slow because the index lookups are slow. Is the
'word' column really 150 bytes?
huh. it's a varchar(50) on table1 and a varchar(50) on table2. i wonder why
explain is reporting
Russell Uman wrote:
Baron Schwartz wrote:
I don't think it will be any better to count distinct values. I think
the query is just slow because the index lookups are slow. Is the
'word' column really 150 bytes?
huh. it's a varchar(50) on table1 and a varchar(50) on table2. i wonder
why
huh. it's a varchar(50) on table1 and a varchar(50) on table2. i
wonder why explain is reporting 150 as key_len?
utf8?
yes. that does make sense.
is there anything else i can investgate?
Do you need utf8? :-)
yes. it's an internationalized application :)
Check your cache hits. I
Sorry a correction
SELECT DISTINCT LEFT(DATE_FIELD_NAME, 10), COLOR_FIELD_NAME, COUNT(T.*) AS
CNT FROM TABLE_NAME T GROUP BY LEFT(DATE_FIELD_NAME, 10), COLOR_FIELD_NAME
Ravi
On 10/28/07, Peter Brawley [EMAIL PROTECTED] wrote:
Neil,
Do you mean ...
SELECT DATE(datetimecol) AS
In the last episode (Oct 27), Baron Schwartz said:
InnoDB has the following extra things, plus some things I might forget:
a) the primary key B-Tree
b) row versioning information for every row
c) 16k page size; each page might not be completely full
Those are all counted towards the table
Hey everyone,
I am starting on putting together the Winter issue of the MySQL
Magazine. This will be our third issue and it is getting better each
time!
Here is your opportunity to contribute to the community. I am accepting
ideas/outlines/proposals for articles for this issue through
17 matches
Mail list logo