Skip to main content

Load the players dataset

In this section, you'll connect to our new AtlasSearchSoccer database and load an extensive ⚽️ player dataset. The dataset will allow you to search and scout across more than 22,000 players worldwide. In the following sections, you'll implement search across different paremeters such as:

  • player name
  • player position
  • nationality
  • club
  • skill level
  • age
  • salary
  1. Get your connection string. On the Database Deployments page click on the Connect button.

    The 'Database Deployments' page with a database named 'AtlasSearchSoccer' and the Connect button highlighted
  2. Select Drivers from the dialog window that opens.

    The 'Connect' dialog highlighting the 'Dialogs' option.
  3. Copy the connection string shown in section 3. Add your connection string into your application code.

    The 'Connect' dialog highlighting the copy button next to the connection string.
  1. Open the Load Players website to import the ⚽️ dataset into your database. Paste your connection string in the input field.

    The 'load players' website
  2. Notice that the connection string you copied has placeholder for username and password. These are the credentials of your database user. If you have forgotten the credentials, don't worry!

    • Go back to the Database Access page on the side menu in Atlas.

      Database access highlighted in the Atlas sidemenu
    • Click Add new database user and fill in the username and password.

      Add user dialog with the role section highlighed
    • Don't forget to add the built-in role Atlas admin.

      Role section dropdown with the role 'admin' highlighted
    • Scroll to the bottom of the dialog and click Add User.

  3. Go back to the browser tab with the Load Players website, add your connection string if you haven't already and replace the placeholders with your own credentials.

    The 'load players' website with connection string filled in and credentials placed in it
  4. Click Submit and wait until the dataset is imported. This should take around 30 seconds. Finally, you should an alert notifying you that the data has been loaded.

  5. Navigate back to your Atlas deployments and click Browse Collections.

    The 'Database Deployments' page with the Browse Collections button highlighted
  6. In the data explorer, you should see the database soccer and the collection players. Explore the documents!

    Atlas data explorer

Great job! You now have your Atlas database set up with some useful player data!