Selasa, 31 Agustus 2021

Memilih Wilayah Cloud Infrastructure

Memilih Wilayah

Saat menentukan Wilayah yang tepat untuk layanan, data, dan aplikasi Anda, pertimbangkan empat faktor bisnis berikut.

Untuk mempelajari selengkapnya, pilih simbol + di samping setiap kategori.

Kepatuhan terhadap tata kelola data dan persyaratan hukum–
Bergantung pada perusahaan dan lokasi Anda, Anda mungkin perlu menjalankan data dari wilayah tertentu. Misalnya, jika perusahaan Anda membutuhkan semua datanya agar bisa menetap di perbatasan Inggris, Anda akan memilih Wilayah London.

Tidak semua perusahaan memiliki peraturan data untuk lokasi tertentu, jadi Anda mungkin perlu lebih fokus pada tiga faktor lainnya.

Kedekatan dengan pelanggan Anda–
Dengan memilih Wilayah yang dekat dengan pelanggan, Anda bisa membantu mereka mendapatkan konten lebih cepat. Misalnya, perusahaan Anda berbasis di Washington, DC, dan banyak pelanggan Anda tinggal di Singapura. Anda mungkin mempertimbangkan untuk menjalankan infrastruktur di Wilayah Virginia Utara supaya dekat dengan kantor pusat perusahaan, lalu menjalankan aplikasi Anda dari Wilayah Singapura.

Layanan yang tersedia dalam Wilayah–
Terkadang, Wilayah terdekat mungkin tidak memiliki semua fitur yang ingin Anda tawarkan kepada pelanggan. AWS sering berinovasi dengan menciptakan layanan baru dan memperluas fitur dalam layanan yang ada. Namun, saat menciptakan layanan baru bagi seluruh dunia, ada kalanya AWS harus membangun perangkat keras fisik secara bergantian, dari satu wilayah ke wilayah lain.

Misalkan developer Anda ingin membangun sebuah aplikasi yang menggunakan Amazon Braket (platform komputasi kuantum AWS). Sejak kursus ini, Amazon Braket belum tersedia di seluruh wilayah AWS di seluruh dunia, sehingga developer Anda harus menjalankannya di salah satu Wilayah yang sudah menawarkannya.

Harga–
Misalkan Anda terpikir untuk menjalankan aplikasi di Amerika Serikat dan Brasil. Cara struktur pajak Brasil diatur, mungkin biaya untuk menjalankan beban kerja yang sama dari Wilayah São Paulo 50% lebih banyak dibandingkan dengan Wilayah Oregon. Anda akan belajar secara lebih terperinci bahwa beberapa faktor menentukan harga, tetapi untuk saat ini, ketahuilah bahwa biaya layanan setiap Wilayah bisa jadi berbeda.

Sabtu, 21 Agustus 2021

PostgreSQL mencari kata yang mirip dan Rank similarity

 You will match against a tsquery to determine if the phrase "Astounding Drama" leads to more rentals per month. Next, create a new column using the similarity function to rank the film descriptions based on this phrase.


  • Select the title and description for all DVDs from the film table.
  • Perform a full-text search by converting the description to a tsvector and match it to the phrase 'Astounding & Drama' using a tsquery in the WHERE clause.
  • Add a new column that calculates the similarity of the description with the phrase 'Astounding Drama'.
  • Sort the results by the new similarity column in descending order.

-- Select the title and description columns
SELECT  
  title, 
  description 
FROM 
  film
WHERE 
  -- Match "Astounding Drama" in the description
  to_tsvector(description) @@ 
  to_tsquery('Astounding & Drama');


titledescription
COWBOY DOOMA Astounding Drama of a Boy And a Lumberjack who must Fight a Butler in A Baloon
BIKINI BORROWERSA Astounding Drama of a Astronaut And a Cat who must Discover a Woman in The First Manned Space Station
CAMPUS REMEMBERA Astounding Drama of a Crocodile And a Mad Cow who must Build a Robot in A Jet Boat
ENCINO ELFA Astounding Drama of a Feminist And a Teacher who must Confront a Husband in A Baloon
GLASS DYINGA Astounding Drama of a Frisbee And a Astronaut who must Fight a Dog in Ancient Japan

SELECT 
  title, 
  description, 
  -- Calculate the similarity
  similarity(description, 'Astounding Drama')
FROM 
  film 
WHERE 
  to_tsvector(description) @@ 
  to_tsquery('Astounding & Drama') 
ORDER BY 
  similarity(description, 'Astounding Drama') DESC


titledescriptionsimilarity
COWBOY DOOMA Astounding Drama of a Boy And a Lumberjack who must Fight a Butler in A Baloon0.246377
GLASS DYINGA Astounding Drama of a Frisbee And a Astronaut who must Fight a Dog in Ancient Japan0.239437
CAMPUS REMEMBERA Astounding Drama of a Crocodile And a Mad Cow who must Build a Robot in A Jet Boat0.236111
ENCINO ELFA Astounding Drama of a Feminist And a Teacher who must Confront a Husband in A Baloon0.22973
BIKINI BORROWERSA Astounding Drama of a Astronaut And a Cat who must Discover a Woman in The First Manned Space Station0.195402

PostgreSQL Cari text tanpa peduli besar kecil dan posisi

 

  • Select the title and description columns from the film table.
  • Perform a full-text search on the title column for the word elf.
-- Select the title and description
SELECT title, description
FROM film
-- Convert the title to a tsvector and match it against the tsquery 
WHERE to_tsvector(title) @@ to_tsquery('elf');

titledescription
GHOSTBUSTERS ELFA Thoughtful Epistle of a Dog And a Feminist who must Chase a Composer in Berlin
ELF MURDERA Action-Packed Story of a Frisbee And a Woman who must Reach a Girl in An Abandoned Mine Shaft
ENCINO ELFA Astounding Drama of a Feminist And a Teacher who must Confront a Husband in A Baloon

PostgreSQL Potong Tulisan bukan ditengah Kata

  • Get the first 50 characters of the description column
  • Determine the position of the last whitespace character of the truncated description column and subtract it from the number 50 as the second parameter in the first function above.

 SELECT 

  UPPER(c.name) || ': ' || f.title AS film_category, 
  -- Truncate the description without cutting off a word
  LEFT(description, 50 - 
    -- Subtract the position of the first whitespace character
    POSITION(
      ' ' IN REVERSE(LEFT(description, 50))
    )
  ) 
FROM 
  film AS f 
  INNER JOIN film_category AS fc 
    ON f.film_id = fc.film_id 
  INNER JOIN category AS c 
    ON fc.category_id = c.category_id;

film_categoryleft
ACTION: WEREWOLF LOLAA Fanciful Story of a Man And a Sumo Wrestler who
ACTION: WATERFRONT DELIVERANCEA Unbelieveable Documentary of a Dentist And a
ACTION: UPRISING UPTOWNA Fanciful Reflection of a Boy And a Butler who
ACTION: TRUMAN CRAZYA Thrilling Epistle of a Moose And a Boy who must
ACTION: TRIP NEWTONA Fanciful Character Study of a Lumberjack And a

Label

Do it Yourself (42) Sepeda (33) Motorcycle (30) soluna (30) GoPro (28) Roda4 (23) Jual (20) Travelling (19) nouvo (19) jupiter (15) Jasa (10) mutasi (10) office (9) Engineering (8) King (8) vw (6) Dad (5) gokart (5) Centrifugal Pump (4) Motor (4) balap (4) pompa (4) racing (4) roadbike (4) tamiya (4) strava (3) Atoz (2) Dinamo (2) crank (2) cycling (2) kart (2) karting (2) motogp (2) mp5 (2) politik (2) rider (2) roadrace (2) shimano (2) yamaha (2) 105 (1) 5tp (1) API 610 (1) API 610. API 682 (1) Atomic Tuned (1) BRT (1) Caterpillar (1) Chassis (1) Continuous (1) Control Station (1) Cummins (1) Diesel Engine (1) Engine (1) Ergonomis (1) HFE (1) HMI (1) HT2 (1) Human Factor Engineering (1) Hyperdash (1) IEC (1) ISO 8528 (1) Light Dash (1) MS (1) MTU (1) Mini4WD (1) NFPA 20 (1) OSHA (1) Prime (1) RD (1) RPM (1) STO (1) Side Damper (1) Super 2 (1) Super FM (1) Super II (1) Tinggi (1) Torque Tuned (1) VFD (1) aki (1) arab (1) avg (1) avometer (1) balance bike (1) balap motor (1) ban bocor (1) ban sepeda (1) berat badan (1) bersepeda (1) best time (1) bike (1) bmi (1) bobot (1) championship (1) claris (1) couples (1) curve (1) dBA (1) deli (1) deli-tire (1) delitire (1) deore (1) derawan (1) dive (1) duraace (1) effort (1) egypt (1) elektrik motor (1) fast (1) fire (1) firepump (1) friend (1) geography (1) gram (1) grand fondo (1) grandfondo (1) gravel (1) gravel bike (1) happy (1) hearth (1) height (1) heist (1) hollow (1) hope (1) hubungan antar negara (1) ilmu korek (1) indonesia (1) indoprix (1) irag (1) iran (1) jogja (1) kakabhan (1) kalimantan (1) kebisingan (1) kecepatan (1) kenda (1) lap time (1) long cage (1) lose (1) love (1) luas air (1) luas tanah (1) maratua (1) material (1) mekanik (1) michelin (1) middle east (1) mio (1) mobil (1) modifikasi (1) motorbalap (1) mp4 (1) mtb (1) multimeter (1) muslim (1) nanjak (1) negara (1) negara paling besar (1) noise (1) oil (1) oil&gas (1) optimal (1) pemilihan (1) performance (1) pitstop (1) point tertinggi (1) polished (1) polygon (1) porting (1) ppe (1) pressure (1) qatar (1) racer (1) rear deralier (1) resort (1) result. (1) rotating (1) rotating engineer (1) safety (1) sanwa (1) schwalbe (1) seleksi material (1) self reflecting (1) self talk (1) sentul (1) setting (1) shock (1) shockbreaker (1) short cage (1) snorkle (1) sokbreaker (1) sound (1) speed (1) sport (1) sram (1) standing (1) steel (1) strider (1) tambal (1) tambal ban (1) tempat jadian (1) tidak merusak ban (1) time (1) tiptop (1) tire (1) travel buddies (1) tuning (1) ultegra (1) velg sepeda (1) visit (1) weight (1) win (1) winner (1) worry (1)