Giter VIP home page Giter VIP logo

Comments (5)

sleimanx2 avatar sleimanx2 commented on July 1, 2024 1

The Auto-ID optimization is removed In elastic v2 check it out https://www.elastic.co/blog/performance-indexing-2-0

from plastic.

ellisio avatar ellisio commented on July 1, 2024

The problem with this is when it comes to saving, updating, and deleting individual records. Looking through the source code of Plastic it appears it relies on the local model ID to perform it's tasks:

https://github.com/sleimanx2/plastic/blob/master/src/Persistence/EloquentPersistence.php#L84
https://github.com/sleimanx2/plastic/blob/master/src/Persistence/EloquentPersistence.php#L111
https://github.com/sleimanx2/plastic/blob/master/src/Persistence/EloquentPersistence.php#L132
https://github.com/sleimanx2/plastic/blob/master/src/Persistence/EloquentPersistence.php#L163
https://github.com/sleimanx2/plastic/blob/master/src/Persistence/EloquentPersistence.php#L192

from plastic.

longthanhtran avatar longthanhtran commented on July 1, 2024

ic, so I think there will be many changes required just in order to implement this. Hopefully we consider to implement in the future :) thanks @ellisio

from plastic.

sleimanx2 avatar sleimanx2 commented on July 1, 2024

@longthanhtran can you tell me about the use case where you want to have the id from Elasticsearch instead of the Model ?

from plastic.

longthanhtran avatar longthanhtran commented on July 1, 2024

hi @sleimanx2, I have a project with few mil of documents, for now, to store on es and per es advice, I want to know if can use self-generate id for es documents. I think model id still store within document while let es manage it "_id" to achieve performance benefit. :)

from plastic.

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.