Webpage Tips



Get Web Design Tips and Tricks on mps-web-design.com. Webpage Tips topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

As a working mother of two, I must admit that sometimes my house isn’t ready for
company. Yes, you might trip over a few pairs of shoes when you walk in and you
might have to wait for dinner while I dig around for some frozen pot pies and some
clean dishes to serve them in.

However, as Web Mistress of http://www.allparody.com, I’m always prepared to
have company come into my “home. Here I can easily hide all the dirty socks under
the bed but the only thing you’ll see is is my best foot forward. When you present a
website for your readers, you are inviting them to observe your house to take part
in your metaphorical meal. To keep company in your house, you'd better make
sure that the coffees hot and the service is fast and good.



Julia Child did not become a successful chef without using her tools of the trade to
provide a visual, culinary masterpiece. Brando wouldn’t have been able to scream
at Stella without his script, staging, lighting and the direction! Bill Gates wouldn’t
have been able to build Microsoft without being a programming geek!


But where do YOU, as the novice, find the tools of the trade? And are they
expensive? The beauty and wonder of the web is ANYONE has access to FREE
you need to put together a truly terrific website.

You’ve registered with the top search engines, such as yahoo.com, excite.com,
google.com. Your site is advertised in newsletters, bulletin boards, guestbooks, link
exchanges, top site lists and more. Customers hit a key word and find themselves
at your site.



Now the question is, are they STAYING, or does your site become a 5 second pit
stop in the Internet raceway?

Terrific graphics are wonderful, but guess what? They are passé on the net if they
are slow loading! Did you know that Yahoo.com’s splash page loads in under 6
seconds, even on a 14.4 modem?? There’s a reason they are so successful!

Let’s say you are the owner of JimBob’s Fishing Hole, selling quality lures and
hooks. A fisherman will wait patiently for hours for a catch. On the net, the same
fisherman will wait an average of 8-12 seconds if the site doesn’t load quickly
enough. The average Joe doesn’t want to wait three minutes to see the jpeg of that
22' bass you caught on Lake Kokomo! This potential “fish” is going get away
unless you masterfully bait the hook.


Gif crunching is the answer!(www.gifcruncher.com) A gif image has a series of
overlaying colors built into it, far deeper than the average human eye can see. What
a gif cruncher does is minimize the unnecessary colors making your picture load
faster. There is a sacrifice of some quality in most cases, but isn't it better to
sacrifice a little than to whine about the one that 'got away'?



In real estate, the key to success is the three L’s: Location, location, location! That
same formula applies to your website. Do you want your readers to find their
information quickly, or to roam around endlessly like the S.S.Minnow on a
three-hour tour? Organization and clear, concise links to your information is the key
to success. Your reader should always have an idea of what they are getting into.
Avoid at all costs undefined links, such as “click here for a surprise”! If I wanted a
surprise, I’d go buy a box of Cracker Jacks.



Bigger IS better! Make your font size BIG enough for people to read. I’d like to
still think I’m twenty-four, but in reality I’m forty something. Although still sexy, my
eyes just aren't what they used to be! If you make me squint and feel old, I’ll go
away. While incredibly small fonts can seem stylish and room saving, they tend to
annoy readers. Pick a safe font as well, like arial or courier. Sure, your snazzy,
unique EuroTrash#45 is a beautiful flowing font. But what good is it if only 10% of
your readers actually see it, while the other 90% see a generically ugly default font?

In summary, quick loading, ease in navigation and viewing, organized links and of
course, excellent content will get the readers who do happen to hit your page to
stay there, and bookmark the page and return. Return visitors will make your site a
success. Once you develop an audience that comes back for more, you have the
makings of hit Broadway show.



Digipics - Digital Camera Software. - Software for the Sony Mavica. Free trial! Copy, organize, slide show, print, create picture webpages.
Make $2,000-5,000 A Month Selling Info. - Get an arsenal of high-demand information products with a ready-to-use webpage and sales letter, and a complete turnkey.

Some simple suggestions

Well I don't consider myself an expert, I do have experience with working with larger datasets and there are a couple of things that I always do to keep queries performing well.

Optimize Queries with EXPLAIN

Explain is your friend, get to know it well. If you take the time to read thru the Explain documentation on the MySQL site, you will find some valuable information, some of which is hilighted below.

Optimizing joins

Single sweep what?

MySQL resolves all joins using a single-sweep multi-join method. This means that MySQL reads a row from the first table, and then finds a matching row in the second table, the third table, and so on. When all tables are processed, MySQL outputs the selected columns and backtracks through the table list until a table is found for which there are more matching rows. The next row is read from this table and the process continues with the next table.

Why is this important? Imagine a main table - tableA - with 80,000 rows of data. This table has a corresponding n:n table that maps entries in tableA with a locations table. A query could be written as:

SELECT tableA.*, locations.location from tableA 
Left Join tableA2locations on 
tableA2locations.tableA_id = tableA.id
Left Join locations on 
tableA2locations.location_id = locations.id
where locations.location = 'sometown'

Keeping the above quote in mind, MySQL will read a row from the first table and join the corresponding data from the joined tables for that row and then sweep thru the rest of the data, joining as it goes along.

This leads us into the following section.

Number of rows needed to execute a query

You can get a good indication of how good a join is by taking the product of the values in the rows column of the EXPLAIN output. This should tell you roughly how many rows MySQL must examine to execute the query.

From the above, you can determine that for a query on tables that have not been properly indexed, a join can quickly become unwieldy when dealing simply with three tables with records in the thousands (1000*1000*1000 = a slow query). See HackMySQL for a good example of this.

Reducing the number of rows needed to execute a query

So beyond indexing properly for joins, you can still end up with a query that runs in a way that causes a bottleneck.

Taking our example from above, imagine that we use a where clause that limits the tableA selection to half (tableA.foo = 'bar' below):

SELECT tableA.*, locations.location from tableA 
Left Join tableA2locations on 
tableA2locations.tableA_id = tableA.id
Left Join locations on 
tableA2locations.location_id = locations.id
where locations.location = 'sometown' and tableA.foo = 'bar'

This starts us out with 40,000 rows of tableA data to examine. If there are a further 2000 rows from tableA2locations, thats 800,000 rows of data. Not astronomical, but significant. If this was a 3 or 4 table join, things could get ugly. What to do? The answer may be obvious to some: select first with the most limiting table:

SELECT tableA.*, locations.location from locations 
Left Join tableA2locations on 
tableA2locations.location_id = locations.id
Left Join tableA on 
tableA2locations.tableA_id = tableA.id
where locations.location = 'sometown' and tableA.foo = 'bar'

This starts us out with 1 selection from the locations table, then 2000 from tableA2locations. If the join between tableA2locations and tableA is indexed correctly, we are then left with an index join based on ID, rather then having to initially select 40,000 rows from tableA as in the previous example.

When I first started programming, it made sense to me to select from the main table (tableA) and join the lookups. But once you add some data to the mix and start to play with Explain, you quickly realize that selecting from the limiting table can make your server's life a little easier.

For further reading on the topic, I always send people to HackMySQL when they ask, so for more tips and tricks, be sure to have a read thru the optimize section of that site.



Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Choosing A Color Scheme By Joanne Glasspoole
When you begin the design of your Web site, one of the first things you need to do is decide on a color scheme. Although choosing colors seems like a relatively easy proposition, it's not easy at all. In fact, it's hard.One of the pluses we have as Web designers is that millions of colors are at our disposal. Unlike the print world, we do not have to pay for each color we use. If we want to use a specific hue of yellow, for example, all we need to know is the hexadecimal code for that particul…

2. How to drive thousands of people to your site for little or no money
Every client I have ever had has asked that one burning question; 'now that I have a great site, how do I get traffic to it?' You spend thousands of dollars and countless hours to polish up your copy, submit your site to all of the search engines and hope that you can muscle your way to the first page of Google, only to find that you don't stand a chance unless you have 10,000 meaningful incoming links from related sites. Before you throw in the towel and hire some overpriced Guru to charge you…

3. Web Design for the Professional Magician Part I - Selecting the Perfect Domain Name
Selecting the Perfect Domain NameThe first issue I have with magician web sites is the improper use of domain names. Examine the following list of URLs and select the most professional one:www.freewebspace.com/users/losers/reallosers/Hire-me.html (Example 1)http://www.Kooool-Magic-2day4U2.tv/ (Example 2)http://www.WebToastyHosty.com/234asdkjfd/No-hire-me.html (Example 3)http://www.TikiMagic.com (Example 4)Example 1Unfortunately the first site is too common today. It is too long to be remembered.…

4. Successful Web Sites - The Need to be in Control By John Philip
I recently carried out a web-site review for a solid and successful company. It had followed most of the ‘rules’ for getting high traffic, but had somehow missed the mark. I suspect that a large number of visitors found the site unconvincing, uninspiring and unmemorable. The site certainly did little to enhance the company’s otherwise very high reputation. I quickly spotted the problem, but it took me a while to figure out the underlying cause.The problem itself was really very simple. Each pa…