Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /

Cargar datos de muestra de detalles de películas

Tiempo estimado para completar: 10 minutos

Para completar este tutorial necesitarás un MongoDB Atlas cluster. Consulta la documentación de Crear un Clúster para obtener instrucciones sobre la creación de un clúster de Atlas.

Atlas proporciona datos de muestra que puedes cargar en tu clúster de Atlas. Para cargar datos de muestra en tu clúster:

1

Inicia sesión en tu cuenta de Atlas en https://cloud.mongodb.com.

2

En la barra lateral, haz clic en Clusters en la sección Database.

La página de clústeres se muestra.

3
  1. Se debe hacer clic en el botón Ellipses (...) del clúster.

  2. Haga clic en Load Sample Dataset.

Atlas empieza a cargar tus datos de muestra. Esta operación toma aproximadamente 5 minutos para completarse.

4

Para ver tus datos de muestra, haz clic en Browse Collections. El conjunto de datos de muestra que ahora aparece en tu implementación de la base de datos incluye las siguientes bases de datos:

  • sample_airbnb

  • sample_analytics

  • sample_geospatial

  • sample_guides

  • sample_mflix

  • sample_restaurants

  • sample_supplies

  • sample_training

  • sample_weatherdata

Para obtener detalles sobre las colecciones y los documentos incluidos en estos conjuntos de datos, consulte Conjuntos de datos de muestra disponibles.

El conjunto de datos necesario para este tutorial es sample_mflix. El siguiente es un documento de muestra del conjunto de datos:

{
"_id": {
"$oid": "573a1391f29313caabcd9637"
},
"plot": "The ancient vampire Count Dracula arrives in
England and begins to prey upon the virtuous young Mina.",
"genres": [
"Horror"
],
"runtime": {
"$numberInt": "85"
},
"rated": "APPROVED",
"cast": [
"Bela Lugosi",
"Helen Chandler",
"David Manners",
"Dwight Frye"
],
"num_mflix_comments": {
"$numberInt": "1"
},
"poster": "https://m.media-amazon.com/images/M/MV5BZDY2ODZhZWQtNDk0ZS00OGE4LWE4NjAtZjE5MTJhMjExMTRjXkEyXkFqcGdeQXVyNjc1NTYyMjg@._V1_SY1000_SX677_AL_.jpg",
"title": "Dracula",
"fullplot": "After a harrowing ride through the Carpathian mountains in eastern Europe,
Renfield enters castle Dracula to finalize the transferral of Carfax Abbey in London to
Count Dracula, who is in actuality a vampire. Renfield is drugged by the eerily hypnotic
count, and turned into one of his thralls, protecting him during his sea voyage to London.
After sucking the blood and turning the young Lucy Weston into a vampire, Dracula turns his
attention to her friend Mina Seward, daughter of Dr. Seward who then calls in a specialist,
Dr. Van Helsing, to diagnose the sudden deterioration of Mina's health. Van Helsing,
realizing that Dracula is indeed a vampire, tries to prepare Mina's fiance, John Harker,
and Dr. Seward for what is to come and the measures that will have to be taken to prevent
Mina from becoming one of the undead.",
"languages": [
"English",
"Hungarian",
"Latin"
],
"released": {
"$date": {
"$numberLong": "-1226966400000"
}
},
"directors": [
"Tod Browning"
],
"writers": [
"Bram Stoker (by)",
"Hamilton Deane (from the play adapted by)",
"John L. Balderston (from the play adapted by)",
"Garrett Fort (play)"
],
"awards": {
"wins": {
"$numberInt": "2"
},
"nominations": {
"$numberInt": "1"
},
"text": {
"2 wins & 1 nomination."
}
},
"lastupdated": "2015-08-28 00:30:04.660000000",
"year": {
"$numberInt": "1931"
},
"imdb": {
"rating": {
"$numberDouble": "7.6"
},
"votes": {
"$numberInt": "30184"
},
"id": {
"$numberInt": "21814"
}
},
"countries": [
"USA"
],
"type": "movie",
"tomatoes": {
"viewer": {
"rating": {
"$numberDouble": "3.7"
},
"numReviews": {
"$numberInt": "44035"
},
"meter": {
"$numberInt": "82"
}
},
"dvd": {
"$date": {
"$numberLong": "998956800000"
}
},
"critic": {
"rating": {
"$numberDouble": "7.9"
},
"numReviews": {
"$numberInt": "45"
},
"meter": {
"$numberInt": "91"
}
},
"lastUpdated": {
"$date": {
"$numberLong": "1442516384000"
}
},
"consensus": "Bela Lugosi's timeless portrayal of Dracula in this creepy and
atmospheric 1931 film has set the standard for major vampiric roles since.",
"rotten": {
"$numberInt": "4"
},
"production": "Universal Pictures",
"fresh": {
"$numberInt": "41"
}
}
}

Ahora que tienes una fuente de datos en Charts, puedes Crea un nuevo tablero de movie perspectivas que contendrá las visualizaciones.

Volver

Visualiza detalles de películas

En esta página