Coder Social home page Coder Social logo

Comments (5)

lastzero avatar lastzero commented on May 1, 2024

Thank you for the hint! The only issue I see is concurrent requests and backups. If you use standard SQL technology, both is not an issue. How would you handle read/write requests from concurrent processes with an embedded store? Probably locking and only run a single instance? For example when the Web frontend is running and the user wants to index new photos on the command-line.

from photoprism.

xeoncross avatar xeoncross commented on May 1, 2024

Yes, depending on which key/value store, large online-backup runs could lock the table for writes - but it generally isn't a problem. Don't let the "key/value" store throw you. Boltdb / LevelDB are vary powerful and both take different approaches to table locking / concurrent use.

LevelDB is a LSM tree so better for loads >10,000 writes/sec, while Bolt uses a B+tree so is optimized for reads. Either of them could easily handle millions of images.

https://github.com/boltdb/bolt#comparison-with-other-databases

http://blevesearch.com/bleve-bench/ can index about 1MB of text/attributes a second and search about 120 queries a second (both only using a single-core)

from photoprism.

lastzero avatar lastzero commented on May 1, 2024

Nice, we'll give it a try :) Although I can imagine some users/admins would like to access their data in MySQL, e.g. from a CMS.

from photoprism.

lastzero avatar lastzero commented on May 1, 2024

We've recently switched to TiDB as our default database, see #60. Is this enough to implement our search or do we need something else like Bleve? While Bleve looks nice, it seems to be based on the unmaintained BoltDB.

  • Does Bleve also properly support LevelDB?
  • How to keep indices of TiDB and Bleve in sync without much effort?
  • Does TiDB have more features for search than MySQL?
  • What would be the specific disadvantage of just using TiDB for now?

All of this needs to be investigated. Help is most welcome! 👍

from photoprism.

lastzero avatar lastzero commented on May 1, 2024

Implemented full-text search with SQL only, even without support for FULLTEXT. So this is not needed anymore.

from photoprism.

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.