/r/rethinkdb
Latest RethinkDB version: 2.3.6
/r/rethinkdb
Same as above
What tips can you give me and how should I approach the problem?
Hey there, I'm trying to save the content of some of my DB's tables to a file. Looking at the documentation the only way is using 'dump', in my case I cannot use that command. I would like to know if does exist a method using the rethinkDb istance to store directly into a file. Something like r.table(tableName).saveTo(...)
Thanks in advance
Hi there, I have a requirement to get all data from rethinkdb table and store it in a JSON file. I have tried using this command rethinkdb dump -c localhost:28015 -e nex_gen -f ./dump
but getting this error below. Does anyone rethinkDb team have any idea about this? Any help would be appreciated. Thanks
Python: 3.11.4
RethinkDB: 2.4.2-11-g6613dc (Windows) (MSC 191627048)
NOTE: 'rethinkdb-dump' saves data, secondary indexes, and write hooks, but does *not* save cluster metadata. You will need to recreate your cluster setup yourself after you run 'rethinkdb-restore'.
Exporting to temporary directory...
cannot pickle '_thread._local' object
Traceback (most recent call last):
File "E:\rethinkdb\venv\Lib\site-packages\rethinkdb\_dump.py", line 200, in main
_export.run(options)
File "E:\rethinkdb\venv\Lib\site-packages\rethinkdb\_export.py", line 639, in run
run_clients(options, working_dir, db_table_set)
File "E:\rethinkdb\venv\Lib\site-packages\rethinkdb\_export.py", line 524, in run_clients
new_process.start()
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\context.py", line 336, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\popen_spawn_win32.py", line 94, in __init__
reduction.dump(process_obj, to_child)
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_thread._local' object
Error: export failed, cannot pickle '_thread._local' object
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Mquanit1\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 106, in spawn_main
source_process = _winapi.OpenProcess(
^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 87] The parameter is incorrect
Hi, I’m interested in using rethink db for a side project (a small game). I used it for a project some years ago. It did it well. I want to know if you are still using for a project. Do you recommend it for games (not too complex game, with multiplayer feature)?
From what I have read the rethinkdb npm package has some issue in detecting browsers.
I changed net.js url with localhost:28015/ajax/reql
But get the same error.
Then i noticed that the web interface of rethink is opening a connection with locahost:8080 instead
But I am getting a corse doing this.
What shall i do
Hi all,
Sorry to be bugging you all with something so basic, but essentially I'm having trouble with getting RethinkDB to return the value of a table outside of the global scope of a series of Promise.then() chains. I've attached an image (which I hope loads...) of my code for your inspection.
Any help getting the list inside the .then chain to be pushed to the currentRoutine array in the global scope would be greatly appreciated.
Thank you.
Hi all,
Just a short message to let you know that RethinkDB 2.4.1 is now available as a managed service on Stackhero: https://www.stackhero.io/services/rethinkdb
Adrien
RethinkDB 2.4.1 released with bug fixes and other improvements. Learn more: https://rethinkdb.com/blog/2.4.1-release Release notes: https://github.com/rethinkdb/rethinkdb/releases/tag/v2.4.1
I have two computers that I work from, I share the my code between the two using Git. Sometimes I’ll have different data in the db on each station bc I forgot to push up on one. When this happens, I’ll have merge conflicts with the rethink files. Not sure what the best way to go about this, any suggestions are appreciated. Sorry if this is a stupid questions, coming from mostly fronted world and trying to build a backend system for learning purposes. Thanks in advance.
While we are continuously working to improve our infrastructure and make it easier for you to use RethinkDB, in the meantime, here's a few updates:
• Java driver release 2.4.3 (thanks Adrian Todt 🙂 ) - https://github.com/rethinkdb/rethinkdb-java/releases/tag/2.4.3
• Python driver release 2.4.7 (thanks Gábor Boros) - https://github.com/rethinkdb/rethinkdb-python/releases/tag/v2.4.7
Hi guys Im not a software developer but I have a team who started a project for me actually a real time database using rethinkdb on aws ec2 and my people said after 1 week of development that’s probably not worth to go further with the development of this real-time database because they cannot find too much documentation and also on aws the latest update was in 2016 or something like that and even I understand that they shut down the support long time ago They also said that’s very difficult to implement with the latest technologies at the moment and obviously they advised me to swap it with mongo dB or atlas
Is someone willing to help me to decide or help ? Thanks guys I really appreciate your help
My server current db is mongodb changing to rethinkdb will make my server faster?
I’m trying to make a webapp using a rethinkdb database as a backend, and I was looking for a sample website that I could base it off of.
I want a simple table on a website that displays the current values of a query (using changefeed).
I’ve tried searching but haven’t found an example of this, but then again I’m a beginner so I might just not know what I’m looking at.
Hey, fellow Rethinkers! We are thinking about setting up a Patreon for a talented ex-employee to replace most of the current code with FoundationDB, letting us focus solely on the query engine. What do you think?
Hey all. I've been using Rethink for like 3 years now. It's my favorite database. I want to potentially start contributing to the project to continue improving its performance. I noticed the slack is down.
Are there any offshoot projects based on rethinkdb coming out? I am in love with REQL and changefeeds, I really don't want to have to switch to mongo.
I see people still use the freenode, is that the best place to discuss rethink?
Just in case you still are using RethinkDB. Here is a CLI to help with dumping and restoring your database. We are still using RethinkdDB at my current job for a certain project and so I'm creating this to make life easier when it comes to dumping and restoring. Working on adding other features like being able to select only certain tables to dump and restore. Just thought I would share it and hopefully others can benefit from it.
can find it in NPM. https://www.npmjs.com/package/rethinkdb-dump-restore-cli
I recently took up this Nodejs-RethinkDB project. The project is about 3 years old and has been running on RethinkDB with about a million plus records now serving clients on web and mobile application interfaces.
With the current configuration, the whole setup works fine no complaints so far. I have scaled to 5 cluster members for RethinkDB, very efficient shards and replication configuration. The query performance is pretty good at this point and I find it easy to scale and manage. I love the web Interface data explorer.
However, I need to add this module in the project that depends alot on real time geo-spatial indexing and querying. Plus I have experience with MongoDB which also has a very high rating and user base. I have seen RethinkDB supports geo-spatial indexing and querying which is a good thing for me.
So my question is. I have compared the databases online at DB Engines Ranking, read several blogs and I have also read a bunch of articles online indicating the Company behind Rethink is did shutdown some time last year. I have several options if i were to migrate to another database but I also I like RethinDB so far.
I want to continue using it for the project and its new features. Here is the list of my concerns on RethinkDB. Should I worry about them?
If i get a solid info on these concerns, I will be set to make an informed choice.
Hi there, new to RethinkDB. Hoping to get some guidance... Is there a better way to check the results of a query? All I am looking to do is check the input from a user to see if it exists in upcs table. This currently works, just curious if there is a better approach?
import rethinkdb as r
hostname = 'localhost'
port = '28015'
db = 'inventory'
r.connect(hostname,port).repl()
def getUPC():
scan = input('Please Enter UPC: ')
cursor = r.db(db).table("upcs").filter(r.row["AcceptedUPC"] == scan).run()
cursor = list(cursor)
if cursor == []:
print('Item not found')
else:
print('UPC Scanned')
while True:
getUPC()
Hello,
I am looking for a way to do real time visualition (x-y graphs). Grafana has a minimum refresh rate of 1 sec. Is there anything similar that would handle a RethinDB input?
Thanks, Bb