educational

Porn and Relational Databases

Adult website content can be characterized as large amounts of data that must be served quickly for many simultaneous users. As with more traditional applications, such as Wall-Street trading systems, the adult content provider actually is building a data warehouse of images, sound and text that must be quickly displayed for multiple customers. This task is commonly referred to as Online Transaction Processing, or OLTP, and is best performed by a relational database.

The relational database was defined in 1971 at IBM by E.F. Codd as a database "where data appears as a collection of tables." These tables can contain video, sound and text. The power of a relational database, as opposed to more primitive storage methods, is that data can be queried in any possible combination. Thus for the adult content provider, a relational database allows for an infinite number of ways that data can be served to a given customer.

Ben Richards, a web-design consultant who has built a large number of successful adult sites, can't imagine building a large adult website without using a relational database to manage the endless number of files and requests. "You are managing huge amounts of content in the adult industry, and without a relational database you will simply be hardcoding file system information into your application," Richards said.

Database Security
Aside from flexibility, a relational database affords the webmaster a higher degree of security. In this era, many adult websites rely on their hosting service to provide login authentication information. This is usually done through the Apache web server and the use of an .htaccess file to authenticate customers that are current members.

The drawback of this method is that someone can hack into this file if they gain access to your computer. If instead your web server authenticates directly through a relational database, hackers must now break into your computer and into the database that stores your authentication information and digital images. Thus, relational databases add a layer of security to any e-commerce system.

Another advantage of using a relational database to serve web pages and streaming media is that customer preferences can be correlated with the presentation of web pages and digital content. Large Internet merchants such as Amazon.com, using the Oracle RDBMS (Relational Database Management System), have mastered the art of providing specific customer preferences during the actual display of data and web pages.

An adult website might record the category of streaming media that a given customer requests. Over time, patterns and preferences will emerge. Using a relational database, each customer can be presented a different content based on their past desires.

For instance, as time passes, one customer that visits your website may prefer blondes. By using a relational database to track this information, you can now target this customer with a plethora of fair-haired images and banner ads to other sites that cater to such Nordic whims.

Adult website customers shouldn't need to search around a maze of web pages to fulfill their desires — content should be served to them based on past behavior. This already is the case with more traditional e-commerce sites that track customer preferences.

With a relational database, any possible relationship can be queried using the SQL language in real-time, thus any obscure type of preference can be gleaned. Sites with a great deal of data and content can make split-second decisions as to what actually is displayed by using a relational database to relate customer data to real-time events.

Government regulations, such as John Ashcroft's proposal step up enforcement of 18 USC Section 2257, which requires adult websites to relate all adult images to identification documents, also lend themselves to solutions using a relational database.

Configuring a relational database to comply with 2257, simply requires creating something similar to a UPC (Universal Product Code) for each image and then storing a table of these primary keys along with any information the government now requires.

With a relational database, data can be queried in any format, so a government or accounting request for any combination of information can be easily satisfied with the SQL language. For instance, credit card information can be encrypted in most relational databases and queried in any order required, including complex summations.

The next question for the webmaster is which relational database to purchase? Of course, the most cost-effective choice is one of the open-source relational databases, such as MySQL. Today MySQL and PHP are the tools of choice for adult webmasters because of their opensource licenses, ease-of-use, and small footprint.

If you are providing content within the Microsoft world, using .net and a tool like Visual Basic, it may be a wiser choice to use the SQL Server relational database offered by Microsoft. The drawback of this solution is the cost of the Microsoft software and the fact that you will be dependent on one company for your software and security.

Oracle RDBMS
The Cadillac of relational databases is the Oracle RDBMS. The Oracle database will run on all platforms and is by far the most sophisticated and fastest database for applications with large amounts of data. The Oracle database also ships fully integrated with the Apache web server.

The drawback with the Oracle database is the cost when compared to an open-source solution such as MySQL. The Oracle database also results in a very large installation and requires a huge amount of memory — it should only be considered if you want to serve large amounts of data to many simultaneous users.

Regardless of which relational database you choose, relational data will be a step up from hard-coding file name paths in your application. Using a relational database will allow you to store and categorize user information and behavior.

Over time, this information will transform your business as you learn more about your customers simply from the patterns they trace in your data as they enjoy your content.

James Edwards is an independent Oracle software developer. He can be reached at relationalwizard@aol.com.

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

profile

'Traffic Captain' Andy Wullmer Braves the High Seas as Spirited Exec

Wullmer networked and hobnobbed, gaining expertise in everything from ecommerce to SEO and traffic, making connections and over time rising through the ranks of several companies to become CEO of the mobile business arm of TrafficPartner.

Alejandro Freixes ·
opinion

To Cloud or Not to Cloud, That Is the Question

Let’s be honest. It just sounds way cooler to say your business is “in the cloud,” right? Buzzwords make everything sound chic and relevant. In fact, someone uninformed might even assume that any hosting that is not in the cloud is inferior. So what’s the truth?

Brad Mitchell ·
opinion

Upcoming Visa Price Changes to Registration, Transaction Fees

Visa is updating its fee structure. Effective April 1, both the card brand’s initial nonrefundable application fee and annual renewal fee will increase from $500 to $950. Visa is also introducing a fee of 10 cents for each settled transaction, and 10 basis points — 0.1% — on the payment volume of certain merchant accounts.

Jonathan Corona ·
opinion

Unpacking the New Digital Services Act

Do you hear the word “regulation” and get nervous? When it comes to the EU’s Digital Services Act (DSA), you shouldn’t worry. If you’re complying with the most up-to-date card brand regulations, you can breathe a sigh of relief.

Cathy Beardsley ·
opinion

The Perils of Relying on ChatGPT for Legal Advice

It surprised me how many people admitted that they had used ChatGPT or similar services either to draft legal documents or to provide legal advice. “Surprised” is probably an understatement of my reaction to learning about this, as “horrified” more accurately describes my emotional response.

Corey D. Silverstein ·
profile

WIA Profile: Holly Randall

If you’re one of the many regular listeners to Holly Randall’s celebrated podcast, you are already familiar with her charming intro spiel: “Hi, I’m Holly Randall and welcome to my podcast, ‘Holly Randall Unfiltered.’ This is the show about sex, the adult industry and the people in it.

Women In Adult ·
trends

What's Hot Now: Leading Content Players on Trending Genres, Monetization Strategies

The juggernaut creator economy hurtles along, fueled by ever-ascendant demand for personality-based authenticity and intimacy — yet any reports of the demise of the traditional paysite are greatly exaggerated.

Alejandro Freixes ·
opinion

An Ethical Approach to Global Tech Staffing

One thing my 24-year career as a technologist working to support the online adult entertainment industry has taught me about is the power of global staffing. Without a doubt, I have achieved significantly more business success as a direct result of hiring abroad.

Brad Mitchell ·
opinion

Finding the Right Payment Partner

Whenever I am talking with businesses that are just getting started, one particular question comes up a lot: “How do I get a merchant account?” It’s a simple question, but it has a complicated answer.

Jonathan Corona ·
opinion

The Taxman Cometh for Every Business

February may be the month of romance, but it is also a time when we need to think about something that inspires very little love: taxes. April is not far away, and the taxman is always waiting. This year, federal and most state income taxes are due Monday, April 15.

Cathy Beardsley ·
Show More