PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
Czytnik RSS
» Będzie polska wersja Dead Rising 2 na PCJak poinformowała dziś firma Cenega, nadchodząca kontynuacja gry Dead Rising ukaże się w naszym kraju w dwóch wersjach językowych. Graczy ucieszy zapewne wiadomość, że każdy nabywca nowego hitu firmy Capcom, będzie mógł wybrać pomiędzy językiem polskim i angielskim.
» Microsoft przejmuję porównywarkę cen
Microsoft poinformował, że w najbliższym czasie przejmie firmę Greenfield Online, właściciela witryny Ciao. Ciao to jeden z wiodących, europejskich serwisów, umożliwiający porównywanie cen różnych produktów, zrobienie zakupów oraz zapoznanie się z opiniami innych konsumentów. Przejęcie umożliwi Microsoft rozszerzenie oferty usług wyszukiwania informacji i handlu elektronicznego w Europie. Zgodnie z warunkami umowy, firma Microsoft na drodze wezwania do sprzedaży oferuje zakup wszystkich wyemitowanych akcji firmy Greenfield Online po cenie 17,50 USD za akcję. Wartość transakcji wyniesie około 486 mln USD.
» HTC i Windows Mobile Phone 7 - może być źle.
Kiedy wiele firm produkujących telefony komórkowe prowadziło negocjacje z dostawcami Windows Mobile (Microsoft) i Androida (Google) o zawarciu ich w swoich produktach, jednocześnie wyposażając kilka telefonów rocznie w te systemy, HTC stworzyło więcej telefonów opartych o to oprogramowanie niż firmy wiele razy od niej większe. Była to też pierwsza firma, która wprowadziła na rynek telefon komórkowy z systemem operacyjnym Android.Microsoft na targach Mobile World Congress 2009 przytoczył HTC jako wyjątkowego partnera. Trzeba mieć przy tym na uwadze, że wyróżnienie to zostało przyznane, kiedy telefon Google Nexus One produkowany przez HTC jest sprzedawany tylko przez największą konkurencję Microsoftu.HTC zrobiło coś więcej niż proste tworzenie dużej liczby telefonów dla tych systemów operacyjnych. Przykuło uwagę użytkowników swoim designem, który zawierał jedne z największych wyświetlaczy i najlepsze klawiatury QWERTY, jak również mądrymi ruchami, jak zawartym w telefonie Touch Pro 2 trybem głośnomówiącym, aktywującym się po spojrzeniu twarzą na wyświetlacz podczas rozmowy. Jednak co najważniejsze, HTC mocno zainwestowało w tworzenie łatwych w użyciu interfejsów użytkownika dla obu systemów operacyjnych. Zespoły projektujące skupiały się na dostarczaniu skórek jak TouchFlo i Sense zarówno dla Windows Mobile i Androida. Jednak teraz Microsoft radykalnie zmienia Windows Phone 7, dlatego HTC również będzie musiało zmienić swoje oprogramowanie i jednocześnie straci rangę posiadania mocno modyfikowalnych interfejsów użytkownika zarówno dla Windows Mobile i Androida.
» HTC HD2 - u nas już jest, w USA od 24 marca
Amerykańska sieć T-Mobile potwierdza, że od 24 marca będzie oferować telefon HTC HD2. Cena aparatu wynosi 200 dolarów, ale trzeba podpisać też dwuletnią umowę abonamentową.
chapter 11. indexes
- table of contents
- 11.1. introduction
- 11.2. index types
- 11.3. multicolumn indexes
- 11.4. combining multiple indexes
- 11.5. unique indexes
- 11.6. indexes on expressions
- 11.7. partial indexes
- 11.8. operator classes
- 11.9. examining index usage
indexes are a common way to enhance database performance. an index allows the database server to find and retrieve specific rows much faster than it could do without an index. but indexes also add overhead to the database system as a whole, so they should be used sensibly.
11.1. introduction
suppose we have a table similar to this:
create table test1 ( id integer, content varchar );
and the application requires a lot of queries of the form
select content from test1 where id = constant;
with no advance preparation, the system would have to scan the entire test1 table, row by row, to find all matching entries. if there are a lot of rows in test1 and only a few rows (perhaps only zero or one) that would be returned by such a query, then this is clearly an inefficient method. but if the system has been instructed to maintain an index on the id column, then it can use a more efficient method for locating matching rows. for instance, it might only have to walk a few levels deep into a search tree.
a similar approach is used in most books of non-fiction: terms and concepts that are frequently looked up by readers are collected in an alphabetic index at the end of the book. the interested reader can scan the index relatively quickly and flip to the appropriate page(s), rather than having to read the entire book to find the material of interest. just as it is the task of the author to anticipate the items that the readers are likely to look up, it is the task of the database programmer to foresee which indexes will be of advantage.
the following command would be used to create the index on the id column, as discussed:
create index test1_id_index on test1 (id);
the name test1_id_index can be chosen freely, but you should pick something that enables you to remember later what the index was for.
to remove an index, use the drop index command. indexes can be added to and removed from tables at any time.
once an index is created, no further intervention is required: the system will update the index when the table is modified, and it will use the index in queries when it thinks this would be more efficient than a sequential table scan. but you may have to run the analyze command regularly to update statistics to allow the query planner to make educated decisions. see chapter 13 for information about how to find out whether an index is used and when and why the planner may choose not to use an index.
indexes can also benefit update and delete commands with search conditions. indexes can moreover be used in join searches. thus, an index defined on a column that is part of a join condition can significantly speed up queries with joins.
after an index is created, the system has to keep it synchronized with the table. this adds overhead to data manipulation operations. therefore indexes that are seldom or never used in queries should be removed.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron