Run a python script that automates create operation of 10000 entries in mongodb on spring tool suite

0 votes
Hello,

I am implementing CRUD operations on spring tool suite along with mongo db as my database.

Now, I want to run a script that will automatically create objects for me and store it in my mongo database.

Once all my objects are created in my database I want to fire a few queries.
Aug 22, 2020 in Python by anonymous
• 120 points
1,195 views

2 answers to this question.

0 votes

Hello,

You can use pymongo to interact with mongo db using python. The docs should be able to guide you from there,

Hope it helps you!!

To know more about it, get your Mongodb certification today.

Thanks.

answered Aug 24, 2020 by Niroj
• 82,840 points
0 votes

You can write a simple loop to insert documents into your MongoDB. Make sure to use bulk insert instead of inserting single documents every time.

answered Aug 24, 2020 by Richa sharma

Related Questions In Python

0 votes
1 answer

I have trained a model using machine learning algorithm in python , now i want to create a browser extension of that saved model , Is it possible ??

Hi@Shubham, It may possible. When you saved your ML ...READ MORE

answered Jun 13, 2020 in Python by MD
• 95,460 points
1,146 views
–1 vote
2 answers
0 votes
1 answer

Question on PyQt: How to connect a signal to a slot to start a background operation in Python

It shouldn't matter whether the connection is ...READ MORE

answered Nov 27, 2018 in Python by Nymeria
• 3,560 points
1,744 views
0 votes
1 answer

is it possible to create zip of a directory in Python?

Please go through this code. This should ...READ MORE

answered Jul 10, 2019 in Python by Arvind
• 3,050 points
927 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,466 views
0 votes
1 answer
0 votes
1 answer

How to create a zip archive of a directory in Python?

Hello @kartik, The easiest way is to use shutil.make_archive. ...READ MORE

answered May 11, 2020 in Python by Niroj
• 82,840 points
650 views
0 votes
1 answer

How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

answered Oct 15, 2020 in Python by Niroj
• 82,840 points
6,814 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP