GithubHelp home page GithubHelp logo

Merge 1.4.0 ? about relational-pouch HOT 13 CLOSED

akofman avatar akofman commented on July 3, 2024
Merge 1.4.0 ?

from relational-pouch.

Comments (13)

nolanlawson avatar nolanlawson commented on July 3, 2024 2

1.4.1 is out now.

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

I'm sorry, but it looks like I accidentally published to npm without actually pushing to Github. Big error on my part; I'll have to reconstruct what I did and hopefully push out a 1.4.1. Super sorry about that. :/

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

No worries ! Super thanks for your reply ;)

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

Just to be sure, is it normal to still have some differences comparing with tag v1.4.0 ?
master...v1.4.0

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

1.4.1 was just based off of the master branch, plus rebuilt with latest dependencies. I literally have no idea what went into 1.4.0, because it's lost now.

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

Ok perfect. I just asked because I noticed a db.rel.query method in 1.4.0 that does not exist anymore in 1.4.1.

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

That was almost certainly a mistake, because I don't think I intentionally merged the change to add db.rel.query (it's not even documented). Hopefully nobody tried to use it!

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

Haha I almost did :p
So in order to query and keep relations, what would be your guidance ?

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

Dunno. I don't even understand where db.rel.query came from. Someone added support for pouchdb-find, but I'm hesitant because I think relational-pouch isn't really optimized to solve that same set of problems.

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

You mean that would produce kind of performance issues ?

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

I'm mostly concerned about tightly coupling two separate plugins.

Also any implementation of db.rel.query or db.rel.find could easily exist as a separate plugin, so I kinda feel like that's where it should go.

from relational-pouch.

akofman avatar akofman commented on July 3, 2024

Hmmm ok I can understand your hesitation. In my case, I'm using both plugins and it's fine to keep them separate. Adding the glue to pouchDB-find is simple anyway.

Just a last question if you don't mind :p
Assuming I have a schema with many-to-many relations between authors and books (let's say a book could have been written by multiple authors, and an author could have written multiple books).
I noticed that if I request a particular author with the find method : db.rel.find('authors', 1) , If one of its books has two related authors, the result will be an array of two authors.

So I'm requesting only one author but at the end I get an array of two authors and I have to iterate between them to retrieve the one I really want. I hope I'm clear enough ...

So I just wanted to know if it is the normal behaviour or if I did miss something ?

from relational-pouch.

nolanlawson avatar nolanlawson commented on July 3, 2024

I'm not really following, sorry. Maybe async relations can help out here?

from relational-pouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.