I'm new to EmberJS and RethinkDB. I'm using changefeeds of rethinkDB for user specific data to create web push notification application with emberjs.
I have created the same with nodejs and socket.io. it is working fine. I want to convert it to…
I have a table with users, each row looks like this:
{
id: ,
email:
}
Where id is the primary key and there's a secondary index for email.
I want to add a user only if no other use with the same email exists. Normally…
I am processing a stream of text data where I don't know ahead of time what the distribution of its values are, but I know each one looks like this:
{
"datetime": "1986-11-03T08:30:00-07:00",
"word": "wordA",
"value": "someValue"
}
I'm trying…
Hi I'm using javascript with rethinkdb, and I'm trying to figure out how to use eqJoin when the id of the target is not on the maintable but on the second table.
The examples on the website shows this.
first table /players
[{name: 'anna',…
Given the table checkpointAttempts, with schema:
{
id: primary_key,
userId: secondary_key & index,
checkpointId: secondary_key & index
}
I'm trying to find all of the checkpointAttempts matching both an array of userIds and an array of…
The schema looks like this:
import Game from './Game'
import {io, thinky} from '../'
const type = thinky.type
export const playerSchema = {
id: type.string(),
createdAt: type.date().default(thinky.r.now()),
modifiedAt: type.date(),
…
I have the following structure:
{
"id": "3065e957-56e9-4084-8e32-bb4de8d9265a",
"id_service": "570b4abe-70fe-44e0-845e-74eb60081fc4",
"tweets": [
{
"created_at": "2013-10-13 00:58:11",
"id_tweet":…
I thought I had it with rethinkdb :) but now I'm a bit confused -
for this query, counting grouped data:
groupedRql.count()
I'm getting the expected results (numbers):
[{"group": "a", "reduction": 41}, {"group": "b", "reduction": 39}...]
all…
I'm trying to make 2 queries for 2 different tables inside the same endpoint. I can do this for simple get queries, but not for more complex update/replace queries. Also I'm not sure how to properly handle errors in this case.
Below is what I…
I have a query that searches through a list of polygons and checks to see if any of a list of points is included.
My problem is I need to some how insert a indicator of which polygon the point was found in.
Here is my query:
function…
I'm loving RethinkDB!
I have a quick question in regards to efficiency of fetching data. I'm building a CRUD model for managing people's contacts.
Making one document containing an array of all the userID's contacts and access it by the primary…
I have a data structure as follows:
{
id: blah-blah-blah,
settings: {
stuff: {},
other_stuff: {},
provided: []
},
....
}
I need to update various items with dynamically generated…
I'm trying to insert the results of a query from one table into another table. However, when I attempt to run the query I am receiving an error.
{
"deleted": 0 ,
"errors": 1 ,
"first_error": "Expected type OBJECT but found ARRAY." ,
…
I am looking for a strategy to implement a shared RethinkDB cluster between customers with data isolation.
I would like to have multiple customers that would use a shared RethinkDB cluster, but I'm not sure about how to enforce the separation of the…
I have a simple database in which I insert messages.
I use the the change() method with the squash option to get the new messages every 10 seconds:
r.table('wall_posts').orderBy({
index: r.asc('date')
}).limit(100).changes({
squash: 10
…