Posts Tagged ‘replace’

MySQL specific shortcuts

Thursday, July 24th, 2008

MySQL provides many extentions to SQL which help performance in many common use scenarios. Among these are INSERT … SELECT, INSERT … ON DUPLICATE KEY UPDATE, and REPLACE.

I rarely hesitate to use the above since they are so convenient and provide real performance benefits in many situations. MySQL has other keywords which are more dangerous, however, and should be used sparingly. These include INSERT DELAYED, which tells MySQL that it is not important to insert the data immediately (say, e.g., in a logging situation). The problem with this is that under high load situations the insert might be delayed indefinitely, causing the insert queue to baloon. You can also give MySQL index hints about which indices to use. MySQL gets it right most of the time and when it doesn’t it is usually because of a bad scheme or poorly written query.

My printer will not print what should I do?

Friday, June 20th, 2008

If your printer isn’t printing and it’s a new printer you’ve just taken it out of the box, first of all, look if it’s plugged into the computer. If the printer is plugged into the computer, the next thing to check is if it’s got power - is it plugged into a power outlet? If those things are plugged in, check if the software is loaded so that your computer can recognize the printer. If the printer still doesn’t work, call the manufacturer or take it back to the store and switch it out. If it’s an old printer, look to see if there’s still ink in there. If the lights are flashing and it’s telling you to replace the ink, that’s what you have to do. If there’s still ink left in the printer and it’s not printing, chances are it’s time to get a new printer.