Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re:^4 How to share huge data structure between threads?

by ph0enix (Friar)
on Jan 15, 2003 at 09:30 UTC ( #227098=note: print w/replies, xml ) Need Help??


in reply to Re:^3 How to share huge data structure between threads?
in thread How to share huge data structure between threads?

This should be some kind od dictionary. As I wrotte in my original post. Data structure of stored value is hash of array of objects.

Currently only working solution is Tie::RDBM with PostgreSQL database backend. Trying to save data in memory I can't share whole hash which contain values as I described before. Because all server threads must be able to add / delete / modify this data I'm currently looking on solutions based on Tie::RDBM + PostgreSQL and MLDBM + BerkeleyDB. When BerkeleyDB with MLDBM is used I get some strange errors probably originaly from Storable module - 'inbalid byte order', 'wrong signature' or 'bad data'...

Other problem I have with tied hashes and Storable (not solved yet) was described in node Storable: where is my memory?.

  • Comment on Re:^4 How to share huge data structure between threads?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://227098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2023-06-04 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (22 votes). Check out past polls.

    Notices?