Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by ph0enix (Friar)
on Jan 15, 2003 at 09:30 UTC ( [id://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?.

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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found