Maximising Web Site Viewability - Browsers



Get Web Design Tips and Tricks on mps-web-design.com. Maximising Web Site Viewability - Browsers 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.

With so many different configurations internet users have their computers set up with, it can be difficult to decide how web sites should be configured so that it is viewable in as many configurations as possible.

So in the last 6 months i have been logging the statistics from my web design site to achieve as accurate a result as possible to answer this question.

The results are interesting reading and in my next few articles i will be analysing this data. First is browsers, and here are the

general statistics :

Microsoft Internet Explorer 6.0 and above - 49%
Firefox 1.0 and above - 34%
Apple Safari - 15%
Microsoft Internet Explorer 5.5 - 1%
Macintosh Camino - 1%

One of the things this shows is that Internet users do in the whole upgrade their internet browsers to the newest version. Only a low percent are infact below the newest version.

It also shows that the foothold Microsoft gained in the browser wars is failing. No doubt they will once again gain ground next year with the eagerly awaited new operating system codename longhorn.

The open source mozilla firefox is gaining ground, but i have noticed that this is mainly because of users who are big gamers on the internet have switched to firefox. This is taken from statistics i did on one of my gaming sites which showed firefox on 65% and Internet explorer on 35%. It appears business users stay with Microsoft.

The message here to web designers is that web sites should be configured viewable in the 3 major browsers which are Internet Explorer, Firefox and Safari. This can be achieved by running the pages through a validator which can be found at http://www.w3schools.com



New CB Affiliate Link Cloaker. - Brand New Affiliate Link Cloaker works with CB and all other Affiliate Programs. - Works in all Modern Web Browsers.
The Great Web Of Percy Harrison Fawcett. - A research for the lost legendary British explorer Colonel Percy Harrison Fawcett.

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. STORYTELLING GRAPHICS DESIGNS
With the boom of the information superhighway in today’s world, more and more people are relying on the internet for information, assistance and entertainment. People now can work at their home, in front of a computer, not anymore needing to travel from place to place to acquire data and go about scheduled tasks.In answer to this need, businesses, big and small alike, turned to websites to conduct and advertise their businesses. These websites make it easy for others to gain access to informatio…

2. 10 Concerns To Have Before Creating A Members Only Web Site!
1. What will be the title of your member's only website and will it have a subtitle? Will you have a logo,slogan or graphics for your member's only site?2. What type of content will you include in yourmember's only web site? ebooks, articles, software,interview transcripts, etc.3. Will your member's only web site host a membercommunity? message boards, chat rooms, onlineclasses, online consulting, etc.4. Will you be the only content provider or will therebe other providers? Will your ask other m…

3. Do You Really Need A Website? By Don Pooley
Nope. You certainly don't need a website.But you don't need many of the things you've come to rely on, such as your cell phone, e-mail, or faxes.And there's no point in having an Internet presence if those you want to reach lack computers or online capabilities. Or, if you have nothing to say. But, if you do have something to say, and your audience is accessible on the Internet, then consider a website.Years before the Internet, I prepared a brochure to give to people who wanted to know wha…

4. Do visitors leave YOUR site feeling confused?
I recently spent a little time surfing the web looking at general web marketing and promotion sites and was somewhat surprised at how many were making what I consider, basic design mistakes. How many of the following apply to YOUR site?Difficult to see from the top half of the page (ie, that part that first comes into view in my browser window) exactly what it is that the site is meant to be promoting.- if it is not clear from what can be seen in the browser window the average visitor will move …