I have a question about MySql. I have a table with entries 7.479.194. Some entries are duplicated. I would like to do this:
insert into new_table
select *
from old_table
group by old_table.a, old_table.b
so I would take duplicate records ... but the problem is that this is a lot of data. MyIsam table.
This is sample data - I would like to group it by city, short_ccode ...
id city post_code short_ccode
----------------------------------------------------
4732875 Celje 3502 si
4733306 Celje 3502 si
4734250 Celje 3502 si
I assume that I need to modify the my.ini file for some memory for the group by statement ... what settings are responsible for this?
I have a machine with 3bg of RAM and a 2Ghz processor.
My ini file:
[client]
port=3306
[wampmysqld]
port=3306
basedir=d:/wamp/bin/mysql/mysql5.0.45
log-error=d:/wamp/logs/mysql.log
datadir=d:/wamp/bin/mysql/mysql5.0.45/data
default-character-set=utf8
default-storage-engine=MyISAM
max_connections=1000
query_cache_size=16M
table_cache=500
tmp_table_size=32M
thread_cache_size=12
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=32M
key_buffer_size=64M
read_buffer_size=2M
read_rnd_buffer_size=8MK
sort_buffer_size=256M
innodb_additional_mem_pool_size=20M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=8M
innodb_buffer_pool_size=512M
innodb_log_file_size=10M
innodb_thread_concurrency=8
[mysqld]
port=3306
source
share