讀取文字檔vs讀取MySQL 誰耗資源? - Linux

Poppy avatar
By Poppy
at 2011-07-17T14:53

Table of Contents

我想寫一個簡易計數器
流量應該不會大
一小時可能就50~100次

想法1:將次數寫進count.txt的文字檔
想法2:將次數寫進MySQL

請問這兩種方式
哪一種比較吃系統資源?


會不會被有心人用大量同時連線
ex:10000個web client進來
吃光系統資源?

--
Tags: Linux

All Comments

linux mint的kd桌面

Ina avatar
By Ina
at 2011-07-17T09:40
※ 引述《itsasemen (這是殺洨)》之銘言: : 標題: [問題] linux mint的kd桌面 : 時間: Fri Jul 15 19:56:00 2011 : : 推 alishas:包管理目前還是pacman,不過未來會換成Akabei。 07/16 22:04 : → ...

pcmanfm的垃圾桶問題

Odelette avatar
By Odelette
at 2011-07-17T09:24
※ 引述《pshadow1 (pshadow)》之銘言: : 現在使用pcmanfm 0.9.9,但是有個奇怪的問題 : 點垃圾桶裡面永遠是空的。 : 在家目錄下.local/share/Trash/files 應該是垃圾桶的位置,裡面確實有東西而且 : 刪除的檔案會正確移到此處,但垃圾桶沒正確連到此。 : ...

cpu

Hardy avatar
By Hardy
at 2011-07-17T08:35
my computer is ten years ago. cpu :amd3.0 sigle core ram :1g why the cpu% is so high when i use in linux, but not in windows something like that, whe ...

請問在家用VMware玩CentOS可以取得IPV6 嗎?

Yuri avatar
By Yuri
at 2011-07-17T02:13
在家裡用網路是中華電信,我用VM玩CentOS 已經啟動/etc/sysconfig/network和/etc/sysconfig/network-scripts/ifcfg-eth0 兩項中設定檔NETWORKING_IPV6=yes和IPV6INIT=yes 但是用ifconfig查了一下 eth0上只 ...

ppstream

Connor avatar
By Connor
at 2011-07-16T21:56
sorry,i cant type chinese, i want to ask question about sound, there is no problem about utube and radio, but in pps, does somebody run into this? ty. ...