male erect herbal penis size

just another regularban.info web blog

MEMBERS:

Efficient SQL Databases

Don't be fooled by seeming simplicity. A lot of developers get comfortable with a certain way of designing a database for their web applications that they miss out on techniques they should rather employ to make things run faster and more efficiently. A lot of developers don't bear in mnd that the small site they are creating now might grow into something incredibly large and complex, and the database they designed has become bloated and doesn't scale well to meet the demands of the increased traffic.

This article hopes to provide web developers with a few techniques to help make their database and queries faster and more efficient.

1. Avoid Character Types

When you are designing a database, it is so easy to set all data types to the VARCHAR type as it can then contain any data you want; numbers or text. But character data is amongst the most inefficient data type you can get. If a field is only going to contain numbers, then make it one of the appropriate types (INT, DOUBLE, etc).

Also, wherever possible in your web development code, try to use numeric data types as opposed to characters. One of the most common things a script has to store are flags like whether someone answered yes or no to a question, etc. You could of course store it as 'Y' or 'N' but why not store it as 0 and 1?

The reason this makes a difference is when you have a database, for example, with over 500 000 entries, and are running a SELECT on that field, comparisons are processed a lot faster for numeric data types than character types. Also, if you need to return data to the calling script, numeric data is less memory intensive than character data. In addition, your web development language (PHP, ASP, etc) would also be able to process and perform functions on numeric data better than character data.

I am not trying to convince you never to use character data types. Sometimes it is a necessity, but if you can find ways to reduce the amount of character data processed by your SQL database, the better your server will cope.

2. Normalization

Normalizing a database is really quite a complex process. It is a process that describes a way to design a database structure to avoid repetition of data in your database and can lead to significant performance benefits if employed correctly. However, the entire process of normalisation is a bit beyond the scope of this article as it can fill books on its own, but any developer designing a database should seriously consider becoming knowledgable about normalisation and employing it in their own designs.

For a good tutorial on this process: http://www.keithjbrown.co.uk/vworks/mysql/mysql_p7.php

3. DateTime vs Timestamp fields

This actually relates to 1. a bit. The big difference to bear in mind here is that a field of type DATETIME is actually stored as a series of characters. A field of type TIMESTAMP is actually stored as an integer. So therefore, a more efficient way of storing dates is using the timestamp method. The timestamp has its drawbacks however. For one, you cannot store a date early than 1 January, 1970. Also, timestamps in your script will need recalculating to get to the character format. Because of this recalculation, it may not be better to store as timestamp. It really is a case of testing which format works better for your needs.

4. Use LIMIT where possible

In your queries, if you are doing a SELECT to a database and you only expect a certain number of results, using the LIMIT statement can speed your query up incredibly.

For example, if you have a table of users and you need to run a query to search for one users record, you can use a query like:

SELECT user_name FROM users WHERE user_id = 453;

This query is perfectly valid and will return the right result. But you also know there will only be ONE result. The query above will search the database, find what you want, but then still continue searching after that. It would run a lot faster if you could tell the query that once it has found what you are looking for to stop searching. LIMIT can do this, as this query shows:

SELECT user_name FROM users WHERE user_id = 453 LIMIT 1;

Imagine this scenario. You have a table called logins, that records every login from a user. It currently contains over 2 000 000 records, and you want to find the first time a user logged in. Now bear in mind that because this table inserts data over time, it is already sorted for by date. You could do the following query:

SELECT MIN(login_date) FROM logins WHERE user_id = 4876;

This will return the record you want, but SQL will now have to get all dates for that user, sort them and then return the lowest value to you. Our table is already date sorted simply because of the way it records data for us. So using LIMIT can be more effective:

SELECT login_date FROM logins WHERE user_id = 4876 LIMIT 1;

Because it is sorted, the first one will always be a users first login.

5. Avoid using LIKE

If you have tried to employ 1. above, then hopefully you will be in a scenario where you do not need to use LIKE all that much. LIKE is one of the most inefficient ways of searching a table. LIKE performs a text comparison search in a field and with no wildcards is as efficient as a direct comparison; i.e. WHERE name = 'Jane' is equivalent to WHERE name LIKE 'Jane'. It is when you start introducing the wildcard characters like '%' that things get really hairy.

If you do have to use LIKE, then at least try and make efficient use of the wildcards. These are '_' (underscore) and '%'. Let me explain all this with a real world example.

In a project I was involved in, we had a SQL database storing logs generated automatically from a mail server. Unfortunately, the mail server pretty much just dumped a very long string of text data into a field that contained the data we wanted. A script had to be written to find all logs that referred to a login by a user into the POP server. The only way we could do this was to search every record for a string in the msg field that had the text "User logged in" in it. The first query developed was something like this:

SELECT msg FROM logs WHERE msg LIKE '%User logged in%';

This query took on average of about 35 minutes to process. Obviously not an ideal situation. The way the LIKE worked here was that it had to parse through every single portion of each and every record in the msg field looking for text that matched "User logged in" anywhere in the text. We were able to determine eventually that the text "User logged in" occured at the end of that text in the msg field and so we altered the query:

SELECT msg FROM logs WHERE msg LIKE '%User logged in';

The '%' at the end was removed as we do not want to worry about text after because there is none. The query now only compares text to our string in the msg field at the end of the field and no longer parses through the entire piece of text stored in msg. The query now ran in under 2 minutes. (This was actually still too long, but how we optimised from there is a little beyond the scope of this article.)

Hopefully with all these elements put into practice on your next web development project, you can have a database that runs quickly, efficiently, uses as little resources as possible and wont grind to a halt when the load suddenly increases.

Gareth McCumskey works as the Systems Developer for Synaq, a South African based Linux support and services provider. He has been involved in web development for over nine years and programming since he was 13.

 


Is Your Website Working For You?

A question I often ask my target market is, "what's your biggest challenge with building your business online?" And one answer I get frequently is this:

How do I make my website earn money?

If you've got a business online, then it's likely you have some sort of web presence. Perhaps it's a one-page 'sign up for my list' kind of site, or a full-blown brochure site with a menu of choices, or maybe your site is in the form of a blog. Regardless of what kind of site (or sites) you have, if they're not doing what you want them to - and since we're in business, ultimately that means making some sort of a profit - then it's time to make some changes.

But how do you REALLY know whether your site is working or not? Here are four strategies to test and track your pages to know what needs fixing:

1. Let the numbers speak

I'm sure if the sky was the limit, you'd hire the most expensive web designer with the fanciest tools to create the most spectacular site imaginable for your business - and someday you just may do that.

For now, though, even an ugly site can make money. I can think of at least two sites right now that I personally think are not that pleasing to the eye, yet I know they are raking in the bucks each and every month, year after year.

So don't get caught up in having the most polished and professionally looking site. Focus more on having the pieces in place that will bring you the cash, too.

2. Give your site only one job

Think of each page of your website as a separate entity with one main purpose. It may be to sell something, or to sign up for your list, or to get people to call you for an appointment. Whatever it is, make it clear that that one thing is the action your visitor should take from being on that page.

3. Track your numbers

Most web hosts offer statistics that you can use to watch your numbers, or there are other web stat programs that you could use as well (such as Google Analytics). However you are keeping an eye on your numbers, you should be looking for two things: how many people visit your site and how many people take the action you want them to take.

From those two numbers, you can figure out your conversion rate, which tells you how many of those visitors took the action you wanted them to - like sign up for your list. If you make small changes to your page AND watch these numbers at the same time, you'll be able to tweak things to increase your conversion rate.

4. Make one change at a time

This is a very effective way to increase the conversion rates on sales pages and sign-up pages. Change just one thing - for example, the headline - and watch your numbers. Compare those statistics to your previous ones and decide whether or not to keep the change. (You can also do this via a split-test in your shopping cart, where the software does the number crunching for you.)

I see so many sites that try to be all things to all people by offering everything under the sun in too small a space - a website - and all that does is confuse people and encourage them to click away. Remember, 'a confused mind always says no', so always go back to the main questions when considering making changes to your website: What's the purpose of this page? What is the one thing I want my visitor to do here? And then design your copy around the answer. Keep it simple and you'll get better results every time.

Alicia M Forest, MBA, Multiple Streams Queen & CoachT, founder of ClientAbundance.com and creator of 21 Easy & Essential Steps to Online Success SystemT, teaches professionals how to attract more clients, create profit-making products and services, make more sales, and ultimately live the life they desire and deserve. For FREE tips on how to create abundance in your business, visit http://www.ClientAbundance.com.

Alicia Forest - EzineArticles Expert Author

 


Website Success

Getting your website done up for your online marketing business? What are your expectations for a good website? What are the important factors that you are emphasizing on to get the desired results from your website? How do you plan to achieve such desired results that will project your website favorably with visitors and customers alike?

Designing a good website and making it work for you and your online business requires tremendous effort in meticulous planning, serious consideration and purposeful fine-tuning. Without all these factors, the vast amount of time, money and effort spent on starting up the website can all be wasted easily.

To achieve website success, it is imperative to consider the following points:

(1) Planning

Draft the plan for your website. What is the exact purpose for the website? This is important because it will set the direction that should be taken for the whole process of designing your website.

(2) Content consideration

Content is the meat and forms an integral part of the website. It is important to think about what content should be included on the website. Another aspect will be how often the content should be updated and how to get reoccurring content.

(3) Designing the website

This plays an important role in keeping your visitors for the first four seconds. The design of your website must speak its intention and desirability very clearly. What it has to show to the visitors must be made known in that very short time span. No beating around the bush whatsoever. It must be distinctly clear in sending its message across.

(4) Encouraging visitor participation

The website for whatever reason it is being designed must attempt to bring in visitors not only for the sake of traffic but also getting them involved by participating in the signing up of the free articles and newsletters that you are offering. The whole process must one of interaction, not just a one-way communication.

(5) Setting up the website

This poses no problems simply because there are professional web designers that you can approach for a certain fee, or alternatively, there are nowadays user-friendly software that you can purchase to design and build your own website, bearing in mind that the design has to be somewhat agreeable within limits to the intention of the website.

(6) Execution of follow-up

It will be extremely damaging if some visitor poses you a question but it is not being followed up within the same day. This reflects poorly on the efficiency on your part. It tarnishes the image of your online customer service.

(7) Promoting your website

In any marketing campaign, there is the element of promotion. After having posted your new website, it is crucial to spend some time in promoting it. It is new and therefore it has not garnered recognition or publicity withing this short period of time. It must be given some push through promoting it. There would be teething problems initially, so the website must be given close attention and nurturing, at least in this initial phase of being hosted.

(8) Executing maintenance of the website

Having set up the website on the internet, it is very important to maintain it. Enliven it with new and fresh content. Make it appealing as each day passes by and visitors returning looking forward to reading new information. Put a warm smile on your website everyday. It will be like what honey is to bees. The path to website success is being subtly laid ahead.

The prerogative after the website is being hosted is obviously getting visitors to know and come to your website. Without visitors to your website, the whole purpose of designing and hosting it will be defeated.

How do you plan to attract visitors to your website? There are several ways of realizing this plan:

(1) Submission of your website to various search engines

Submitting your site to various search engines will help in some way. Of course, it would be advisable not to place full reliance on them as they can be inconsistent. If budget permits, bidding for a spot on the search engine would be a more viable alternative simply because an extra bit of control can be exercised. Overture.com is one good choice.

(2) Put up various free offers

Who would not want to accept free offers if given? This can be best executed by explaining why the visitors in accepting the free offers would understand more about their problems on hand. "Grab free information relating to your backaches. You'll receive more of such information if your just sign in and allow me to mail you these free related information on a weekly basis".

(3) Put up ads online

It is a good opportunity to put up ads online. Run your paid ads in e-zines. Put your ad buried in another person's e-zine, or you can choose to buy a full page ad. The whole process will induce the source of incoming traffic to your website.

(4) Use word-of-mouth

This method is viral and is usually effective. Let the world know about your website by inserting your personal signature file on your name cards, brochures, leaflets, just to name a few. Inevitably, as this usually turns viral, it will lead to more website visibility.

The internet provides the opportunities for online success. All that is needed to be done is to leverage ourselves with technology. It is equally crucial to understand that website success needs good effort in planning, designing, hosting, promotion and maintenance of the website. Nothing is further from the truth that a well-maintained website is one guaranteed of success in the long run.

Webmaster: Jeremy Long Chia Teik.

For latest updates on how to increase traffic, raise page ranking, write effective articles and powerful squeeze pages, create explosive blog marketing system, learn about viral marketing, and bring in massive income from your internet marketing business, please Click here

Jeremy Long Chia Teik - EzineArticles Expert Author

 


Pages 
* About

Archives
    * February 2008
    * January 2008

Categories:
* Uncategorized

Last Updated:

regularban.info is proudly powered by WordPress MU running on  regularban.info.
Create a new blog and join in the fun!
Entries (RSS) and Comments (RSS).