Comments (4)
Is this document current?
https://github.com/torodb/torodb/wiki/How-ToroDB-stores-json-documents-internally
Nope, it is not! We have to update it or remove it until we can do it because it can be confusing. The new storage engine used by ToroDB Server follows the ToroDB Stampede conventions (you can found them here).
Since some month ago we have been focused on ToroDB Stampede (the solution that replicates from a MongoDB replica set but does not offer a MongoDB interface to talk with the data) and ToroDB Server has fallen behind. Tomorrow or early next week we will have a more useful version of ToroDB Server on the devel branch. I recommend you to wait until then to start to start your hacking season.
from stampede.
Hi @ArturFormella,
What you suggest is quite interesting and ToroDB Server 0.40 supports it partially. There is a command that allow to execute any readonly sql sentence. The result set returned by postgres is then translated to a MongoDB Cursor. There are a couple of issues with that approach:
- ToroDB Server 0.40 is an older version that uses the deprecated data storage algorithm. ToroDB 0.50 does not support that command yet (but we would like to add it on future releases, it shouldn't be difficult).
- You can only execute two operations with cursors in ToroDB: fetch and close. You cannot, for example, use it on an aggregation pipeline.
On the other hand, this is not exactly as "regular PostgreSQL tables as collections" because you have to query them using SQL queries. You cannot access non-torodb tables with the MongoDB syntax. We would like to do that, but it is quite difficult (specially if you want to build hierarchical json objects with several tables).
There is also a unorthodox and hackish way to do what you want. You can "hack" your tables to look like ToroDB tables and add to the ToroDB metatables, then ToroDB should be able to execute read only queries against them. If you don't want to modify your tables, it should work with views.
from stampede.
Hello!
Thank you for your answer, @gortiz.
I was thinking of Torodb as gateway to Postgres database with all advantages of MongoDB query language.
Even because Mongo query language is more suitable for Javascript than SQL.
I will try a hackish way first :)
Is this document current?
https://github.com/torodb/torodb/wiki/How-ToroDB-stores-json-documents-internally
from stampede.
Hi @ArturFormella ,
I have just accept a PR on the devel branch that fixed a couple of bugs on ToroDB Server. Feel free to test it if you want. I am looking forward to hear from your experience.
from stampede.
Related Issues (20)
- Include/Exclude Filtering Not excluding field HOT 2
- Make Stampede work without the __system role as Mongodb hosted on Mongo Atlas doesn't allow __system role HOT 1
- Oplog replication stream finished exceptionally: null HOT 8
- Extract nested field as an attribute not a relation HOT 1
- DBRefs are transformed into "_e" columns (embedded objects) HOT 2
- ToroDB Stampede gives no output HOT 1
- ToroDB shuts down unexpectedly HOT 2
- Issue in initial set up HOT 4
- Reason to use __system role in mongoDB. HOT 3
- Incompatile with mongodb version 3.6 ? HOT 4
- Fatal error while trying to refresh the metadata after an erroneuous attempt to prepare the schema HOT 2
- How i can prevent torodb to create duplicate columns on the basis of the datatype of the values in that column. HOT 1
- Using mysql backend incorrectly calling backend-common jar file HOT 3
- Remove data type suffix? HOT 2
- When will mongo 3.6 be supported? HOT 11
- Thinking of using stampede for ETL HOT 2
- unexpected field writeConcerMajorityJournalDefault in replica set configuration HOT 4
- Unable to build on os x - 10.15.7 HOT 1
- Is this project still active? HOT 2
- Alternative to stampede HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stampede.