RSS

Posts in 2021

  • Most votes on multithreading questions 2

    May 01, 2021 in FAQ

    Most votes on multithreading questions 2. #11 When and how should I use a ThreadLocal variable? #12 Multiprocessing vs Threading Python #13 What is a daemon thread in Java? #14 What is thread safe or non-thread safe in PHP? #15 Is there any way to kill a Thread? #16 Service vs IntentService in the Android platform #17 What is a mutex? #18 How should I unit test multithreaded code? #19 Volatile vs. Interlocked vs. lock #20 What is the volatile keyword useful for?

    Read all the top votes questions and answers in a single page. #11: When and how should I use a ThreadLocal variable? (Score: 913) Created: 2009-05-03 Last updated: 2019-05-09 Tags: java, multithreading, concurrency, thread-local, thread-confinement …

    Read more

  • Most votes on multithreading questions 10

    May 01, 2021 in FAQ

    Most votes on multithreading questions 10. #91 Is the C# static constructor thread safe? #92 Daemon Threads Explanation #93 Semaphore vs. Monitors - what's the difference? #94 Get a list of all threads currently running in Java #95 C# Events and Thread Safety #96 What is the use of join() in Python threading? #97 What's the difference between Thread start() and Runnable run() #98 Catch a thread's exception in the caller thread in Python #99 What is the difference between Task.Run() and Task.Factory.StartNew() #100 How many threads can a Java VM support?

    Read all the top votes questions and answers in a single page. #91: Is the C# static constructor thread safe? (Score: 252) Created: 2008-08-10 Tags: c#, multithreading, singleton In other words, is this Singleton implementation thread safe: public …

    Read more

  • Most votes on multithreading questions 1

    May 01, 2021 in FAQ

    Most votes on multithreading questions 1. #1 "implements Runnable" vs "extends Thread" in Java #2 C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming? #3 What is the difference between a process and a thread? #4 How do I update the GUI from another thread? #5 How can I use threading in Python? #6 Difference between wait() and sleep() #7 How do servlets work? Instantiation, sessions, shared variables and multithreading #8 What is a race condition? #9 Android "Only the original thread that created a view hierarchy can touch its views." #10 What does 'synchronized' mean?

    Read all the top votes questions and answers in a single page. #1: "implements Runnable" vs "extends Thread" in Java (Score: 2206) Created: 2009-02-12 Last updated: 2018-09-11 Tags: java, multithreading, runnable, implements, …

    Read more

  • Most votes on mongodb questions 9

    May 01, 2021 in FAQ

    Most votes on mongodb questions 9. #81 elasticsearch v.s. MongoDB for filtering application #82 Unable to create/open lock file: /data/mongod.lock errno:13 Permission denied #83 Difference between MongoDB and Mongoose #84 Store images in a MongoDB database #85 mongodb, replicates and error: { "$err" : "not master and slaveOk=false", "code" : 13435 } #86 Mongoimport of JSON file #87 Best way to store date/time in mongodb #88 MongoDB: Find a document by non-existence of a field? #89 How to sort mongodb with pymongo #90 How do I create a MongoDB dump of my database?

    Read all the top votes questions and answers in a single page. #81: elasticsearch v.s. MongoDB for filtering application (Score: 192) Created: 2012-10-04 Tags: mongodb, elasticsearch This question is about making an architectural choice prior to …

    Read more

  • Most votes on mongodb questions 8

    May 01, 2021 in FAQ

    Most votes on mongodb questions 8. #71 How to listen for changes to a MongoDB collection? #72 How much faster is Redis than mongoDB? #73 How to Update Multiple Array Elements in mongodb #74 Possibility of duplicate Mongo ObjectId's being generated in two different collections? #75 add created_at and updated_at fields to mongoose schemas #76 Changing MongoDB data store directory #77 How to use mongoimport to import csv #78 mongo - couldn't connect to server 127.0.0.1:27017 #79 Node.js Mongoose.js string to ObjectId function #80 MongoDB Show all contents from all collections

    Read all the top votes questions and answers in a single page. #71: How to listen for changes to a MongoDB collection? (Score: 210) Created: 2012-03-13 Last updated: 2012-04-25 Tags: mongodb I’m creating a sort of background job queue system …

    Read more

  • Most votes on mongodb questions 7

    May 01, 2021 in FAQ

    Most votes on mongodb questions 7. #61 MongoDB - admin user not authorized #62 Push items into mongo array via mongoose #63 How to query nested objects? #64 MongoDB SELECT COUNT GROUP BY #65 MongoDB - Update objects in a document's array (nested updating) #66 How can I run MongoDB as a Windows service? #67 How do I partially update an object in MongoDB so the new object will overlay / merge with the existing one #68 What are naming conventions for MongoDB? #69 Date query with ISODate in mongodb doesn't seem to work #70 Why does the MongoDB Java driver use a random number generator in a conditional?

    Read all the top votes questions and answers in a single page. #61: MongoDB - admin user not authorized (Score: 233) Created: 2014-05-29 Last updated: 2014-05-29 Tags: mongodb, admin I am trying to add authorization to my MongoDB. I am doing all this …

    Read more

  • Most votes on mongodb questions 6

    May 01, 2021 in FAQ

    Most votes on mongodb questions 6. #51 How can I rename a field for all documents in MongoDB? #52 MongoDB: Combine data from multiple collections into one..how? #53 return query based on date #54 How to search in array of object in mongodb #55 How to list all databases in the mongo shell? #56 How to copy a collection from one database to another in MongoDB #57 MongoDB inserts float when trying to insert integer #58 MongoDB: update every document on one field #59 What did MongoDB not being ACID compliant before v4 really mean? #60 Comparing mongoose _id and strings

    Read all the top votes questions and answers in a single page. #51: How can I rename a field for all documents in MongoDB? (Score: 255) Created: 2012-02-13 Last updated: 2016-04-12 Tags: mongodb Assuming I have a collection in MongoDB with 5000 …

    Read more

  • Most votes on mongodb questions 5

    May 01, 2021 in FAQ

    Most votes on mongodb questions 5. #41 Ways to implement data versioning in MongoDB #42 Render basic HTML view? #43 mongodb/mongoose findMany - find all documents with IDs listed in array #44 NoSQL (MongoDB) vs Lucene (or Solr) as your database #45 How to select a single field for all documents in a MongoDB collection? #46 How to print out more than 20 items (documents) in MongoDB's shell? #47 E11000 duplicate key error index in mongodb mongoose #48 Avoid "current URL string parser is deprecated" warning by setting useNewUrlParser to true #49 Stop Mongoose from creating _id property for sub-document array items #50 How to paginate with Mongoose in Node.js?

    Read all the top votes questions and answers in a single page. #41: Ways to implement data versioning in MongoDB (Score: 308) Created: 2010-11-15 Last updated: 2017-05-23 Tags: mongodb, database-versioning Can you share your thoughts how would you …

    Read more

  • Most votes on mongodb questions 4

    May 01, 2021 in FAQ

    Most votes on mongodb questions 4. #31 How to remove a field completely from a MongoDB document? #32 What is the "__v" field in Mongoose #33 MySQL vs MongoDB 1000 reads #34 Get names of all keys in the collection #35 MongoDB: Is it possible to make a case-insensitive query? #36 "continue" in cursor.forEach() #37 How do I manage MongoDB connections in a Node.js web application? #38 How do I search for an object by its ObjectId in the mongo console? #39 How do I remove documents using Node.js Mongoose? #40 Mongoose: findOneAndUpdate doesn't return updated document

    Read all the top votes questions and answers in a single page. #31: How to remove a field completely from a MongoDB document? (Score: 365) Created: 2011-07-27 Last updated: 2017-09-22 Tags: mongodb, mongodb-query, database { name: 'book', tags: { …

    Read more

  • Most votes on mongodb questions 3

    May 01, 2021 in FAQ

    Most votes on mongodb questions 3. #21 When to Redis? When to MongoDB? #22 Find objects between two dates MongoDB #23 How to execute mongo commands through shell scripts? #24 How do I update/upsert a document in Mongoose? #25 Update MongoDB field using value of another field #26 Retrieve only the queried element in an object array in MongoDB collection #27 How to secure MongoDB with username and password #28 Add new field to every document in a MongoDB collection #29 How to export all collections in MongoDB? #30 Random record from MongoDB

    Read all the top votes questions and answers in a single page. #21: When to Redis? When to MongoDB? (Score: 466) Created: 2011-03-23 Last updated: 2015-04-03 Tags: architecture, mongodb, nosql, redis What I want is not a comparison between Redis and …

    Read more