Git Product home page Git Product logo

dox's People

Contributors

dmfay avatar robconery avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dox's Issues

Conditional save or modify

I would love to see dox provide the ability to detect and prevent lost "concurrent" updates. By which I mean concurrent users who retrieve a document in one transaction, then modify it outside the DB and save it back in another transaction.

Maybe dox could keep a version number on each document that increments on every save/modify. The version number could be returned with results. Save and modify could be made to optionally compare the current version number with the one specified in the incoming document and return an error if they don't match.

Why the creation of a lookup column vs an index?

Wouldn't an index on the specific parts of the JSONB structure be more efficient for what you are looking for? ie:

CREATE INDEX idx_jsonpart ON jsonTbl(cast(body->>'intvalue' AS INT));

No trigger maintenance and it would accomplish what I think you are attempting to accomplish via the lookup. Or am I missing the purpose behind the lookups?

License

This project is quite interesting and compelling. Can you clarify the license for this code?

Minor error in documentation

Both here in the README.md, and in your blog post, for the dox.save function you use a named argument of 'table', but the function actually uses a parameter 'collection', like the rest of the API.

Bulk insert using postgreSQL

Hi Rob,
i can able to loop over all the documents and insert but performance prospective we need to insert at a time to all documents,
i read many places that we can use COPY, but how can we use it.
how can we insert bulk of documents into details jsonb and if we insert then how the primary key generate automatically, please help me.

Thanks.

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.