You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ravikanth Gangarapu (JIRA)" <ji...@apache.org> on 2014/08/27 18:39:57 UTC

[jira] [Commented] (SOLR-6144) DIH Cache backed with MapDB

    [ https://issues.apache.org/jira/browse/SOLR-6144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112414#comment-14112414 ] 

Ravikanth Gangarapu commented on SOLR-6144:
-------------------------------------------

[~jdyer]
hi, I have tried a simpler version of the MapDBCache implementation which is used as a simple replacement for SortedMapBackedCache to store cache on files. I found that if storage mode is file and my SQl query is bringing Clob objects (SQL Server with jtds driver), MapDB will complain about not able to serialize the data on db.commit(). So, I have modified the add() method to go thru record Map and find values that cannot be serialized ( in my case Clob objects) and read the data into a string and put it as value. My solution is not generic, but i think we may need a NonSerializableDataConverter interface and a list of those converter objects on the MapDBcache instance So cache class can handle them properly. Just a suggestion, let me know your feedback, I can contribute.

Thanks
Ravi

> DIH Cache backed with MapDB
> ---------------------------
>
>                 Key: SOLR-6144
>                 URL: https://issues.apache.org/jira/browse/SOLR-6144
>             Project: Solr
>          Issue Type: New Feature
>          Components: contrib - DataImportHandler
>            Reporter: James Dyer
>            Priority: Minor
>         Attachments: SOLR-6144.patch
>
>
> This is a DIH Cache implementation using Map DB version 1.0.2.  Map DB is a pure Java key-value store that supports both file-based caches and memory-based caches (both on- and off-heap).  See http://www.mapdb.org/.  MapDB is ASL2.0 licensed, so unlike the BDB-JE cache impl (SOLR-2613), this one could potentially be committed.
> This does not perform nearly as well as the BDB-JE cache, but I imagine it is fast enough for a lot of uses.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org