Category: databases

Dec08
if you insert data using server side metadata like now(), there is a very high possibility that the replica you have running will not get the same information. more »
Jun12

dstat and disk device names

Posted by Karanbir Singh on 12/Jun/2009  ~  Posted in: Linux, databases  ~  4 feedbacks »

Running dstat normally gives you something like this :# dstat --nocolor----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--usr sys idl wai hiq siq| read writ| recv send| in out | int csw 3 0 97 0 0 0| 820k… more »
May26

Removing lots of data from a DB table

Posted by Karanbir Singh on 26/May/2009  ~  Posted in: Linux, databases  ~  3 feedbacks »

If you need to remove large amounts of data from a table ( specially when you need to remove *all* the data in a table), remember its faster to drop the table, and recreate it rather than doing a 'delete from tablename;'.eg: this is against a postgre… more »