Code Monkey home page Code Monkey logo

Comments (9)

robertvazan avatar robertvazan commented on May 24, 2024

That's a large topic. I cannot just answer it here. I will keep this issue open as a reminder to write an article about it.

from sourceafis-java.

mostafaebrahimi avatar mostafaebrahimi commented on May 24, 2024

would you please attache here documents link that can help?
Is there any solution to index these data in sql database or nosql
I need your hints ASAP :D

from sourceafis-java.

robertvazan avatar robertvazan commented on May 24, 2024

All templates must be loaded in RAM and deserialized into FingerprintTemplate objects for matching to be fast. I cannot say more here.

from sourceafis-java.

mostafaebrahimi avatar mostafaebrahimi commented on May 24, 2024

but I think this is not an efficient way!
because for 100,000 users we have to handle about 60MB data compare.
Do have know another idea or platform to store and compare?

from sourceafis-java.

lucaspcamargo avatar lucaspcamargo commented on May 24, 2024

I use LMDB for that. It's neat in the sense that all the fingerprints can be read quickly and the index is fast. But yeah, there is no escaping keeping the processed templates in RAM for fast matching performance. One could try to modify the codebase for having flat templates that can also be memory-mapped, but that is sure to be a pain in Java.

edit: I mentioned LMDB, but I learned the hard way that the db technology doesn't matter much. What matters is keepíng all the processed templates in RAM at all times. That should be no problem for a modern system, even with tens of thousands of entries. Figuring out how to update this cache as efficiently as possible is important as well. It can be done using SQL triggers or by adding hooks to the system that modifies the DB.

from sourceafis-java.

mostafaebrahimi avatar mostafaebrahimi commented on May 24, 2024

@lucaspcamargo Thanks for your response buddy
I try to load data in memory and that solved my problem.(using a simple array list and comparing method for 1:n)

from sourceafis-java.

AlekseyMalyshev avatar AlekseyMalyshev commented on May 24, 2024

because for 100,000 users we have to handle about 60MB data compare.

Did you mean - Mb or Gb? 60 Mb is not such a large amount of data? It looks more like 60Gb per 100,000 users to me.

from sourceafis-java.

seuntech avatar seuntech commented on May 24, 2024

because for 100,000 users we have to handle about 60MB data compare.

Did you mean - Mb or Gb? 60 Mb is not such a large amount of data? It looks more like 60Gb per 100,000 users to me.

MB

from sourceafis-java.

robertvazan avatar robertvazan commented on May 24, 2024

Memory usage benchmarks for templates are now available:

https://sourceafis.machinezoo.com/cli

The general topic of using SourceAFIS on large databases is too broad for one issue. Please open separate issues to request specific documentation.

from sourceafis-java.

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.