Showing entries 32226 to 32235 of 44811
« 10 Newer Entries | 10 Older Entries »
Cache your sessions. Don't piss off your users

I hope you're all enjoying the 1.2.6 stable release of memcached. Don't want to hear no whining about it crashing!

One of the most common questions in memcached land is the ever obnoxious "how do I put my sessions in memcached?". The long standing answer is usually "you don't", or "carefully", but people often walk the dark path instead. Many libraries do this as well, although I've seen at least one which gets it.

This isn't as huge of a deal as people make it out to be. I've been asked about this over the mailing list, in IRC, in person, and even in job interviews. What people end up doing gives me the willies! Why! Why why why... Well, I know why.

So what is the deal with sessions? Why does everyone want to jettison them from mysql/postgres/disk/whatever? Well, a session is:

- Almost always larger than 250 bytes, …

[Read more]
Cache your sessions. Don't piss off your users

I hope you're all enjoying the 1.2.6 stable release of memcached. Don't want to hear no whining about it crashing!

One of the most common questions in memcached land is the ever obnoxious "how do I put my sessions in memcached?". The long standing answer is usually "you don't", or "carefully", but people often walk the dark path instead. Many libraries do this as well, although I've seen at least one which gets it.

This isn't as huge of a deal as people make it out to be. I've been asked about this over the mailing list, in IRC, in person, and even in job interviews. What people end up doing gives me the willies! Why! Why why why... Well, I know why.

So what is the deal with sessions? Why does everyone want to jettison them from mysql/postgres/disk/whatever? Well, a session is:

- Almost always larger than 250 bytes, …

[Read more]
Using Ruby to Migrate Databases

If you deal with databases for a living, eventually you’ll come across cases where you’ll need to migrate a lot of data from one schema to another. I am not just talking about migrating from one different type of database to another, like from Oracle to MySQL, but from, for instance, a badly-designed schema to one more expertly crafted.

If there are minor differences between the source and target schema, this is a trivial affair. On the other hand, if the schema is completely different, this can be quite a challenge. Moreover, the database being migrated might represent a high-demand website that will need to be done with little or no downtime, with lots of planning and preparation to boot. You may be interacting with the application developers, the systems crew, and juggling tight deadlines as well.

Well, as you may have guessed, I have described some of the roles I now play at a leading social networking company. We are …

[Read more]
101 MySQL Stories

Hi,

My name is Larry and I am an Oracle DBA. I work in the City for a large finance corporation - we use Oracle, SQLServer and Sybase. It's a great job, very well paid and plenty of opportunities to learn new stuff.

My company has been seriously hit by the crisis in the financial sector and the management is now wondering if it's really necessary to pay expensive licenses for every small project that requires a database. It's true that we have a corporate license agreement, but that does not cover all the instances - we need to distinguish between front end, back end, sockets, physical CPUs, cores, threads and lots of other rules I do not remember.

One of my managers heard about MySQL. He read that MySQL powers the majority of the Web 2.0 world. I thought that MySQL was only a small thing for home use, but maybe it's been improved. I am curious by nature, so I am really excited to discover something new. …

[Read more]
OSCon 2008 Video: Josh Berkus' Safe Data is Happy Data

Josh Berkus' "Safe Data is Happy Data" (originally entitled "Lock Up Your Data") goes talks about defense in depth -- going beyond firewalls and other "perimeter defense" mechanisms such as middleware and web server tools. Berkus explains "full-stack security" including preventing SQL injection, data abstraction, database permissions, and even what to do after an attack.

Stream directly online at http://technocation.org/node/591/play or download the 346 Mb .wmv file at .

From the official OSCon description:

read more

New MySQL Community release - Great job MySQL !

Wow!. New MySQL Community release - MySQL 5.0.67 is just out which as manual says first community release since 5.0.51b. I just recently complained about community release irregularity and I'm glad to see the new release after all.

I only hope this will not be one time event but MySQL will follow its own promises of regular schedule of source and binary MySQL Community releases.

My even deeper hope, though, is MySQL will finally become rational and will stop walking their customers (users of MySQL Enterprise version) over mine field and allow community to check code changes first because of pushing them to the customers. MySQL Enterprise branch had enough serious problems which have been caught quickly by …

[Read more]
New Community release - MySQL 5.0.67

After a long delay, a new community binary has been released. MySQL 5.0.67 has reached the mirrors and it's ready for download.

The list of changes is quite long and includes a tiny incompatible change.

Every version of MySQL ships with sample option files, called my-small.cnf, my-large.cnf, my-huge.cnf.cnf. In this version, these files contain a line saying

skip-federated
That won't affect existing servers. However, if you are starting a new server using one of the sample option …
[Read more]
Why I Don’t Write Book Reviews

I have a lot of interaction with publishing types. I write a lot, and I edit some, and I do tech reviews and stuff for some publishers, and I co-authored a book, and I’ve worked on two magazines, and a newspaper, and I’m generally fascinated by the technical book market and stuff like that. I’m also someone who is lucky enough that his job is also his hobby. I work in technology, and am always doing something technology related at home in my spare time. Needless to say, I read tons upon tons of technical books.

I almost never post book reviews, in spite of the fact that I read all of these books. Why? Well, to be honest, I couldn’t tell you. It just hasn’t occurred to me to write a book review. Could be because I don’t really value book reviews too much myself I guess. I mean, if there’s a really obvious consensus across a huge number of reviews, I might be swayed. But in general, I find that book reviews are too often the …

[Read more]
Adding a Unique Constraint on a Table with Duplicate Data

After I moved back to Europe and Malta in order to set up our operations here, I was approached by a old friend of mine who wanted to know how to add a UNIQUE constraint and remove duplicates on a table, while keeping the newest records. He had been trying with ALTER TABLE but ran into problems as the older values were taken.

So, to help him out, I first solved it based on his original idea, and then figured I would post a small note about the solution here.

So, let’s say we have the following structure . . .

sql01 blogs> SHOW CREATE TABLE post1164\G
*************************** 1. row ***************************
       Table: post1164
Create Table: CREATE TABLE `post1164` (
  `a` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `b` varchar(5) DEFAULT NULL,
  `c` varchar(5) DEFAULT NULL,
  PRIMARY KEY (`a`)
) ENGINE=MyISAM AUTO_INCREMENT=7 …
[Read more]
Are vendors afraid of open source?

Find out whether management at Microsoft, Oracle, SAP and IBM think that open source is a threat or an opportunity. READ MORE

Showing entries 32226 to 32235 of 44811
« 10 Newer Entries | 10 Older Entries »