peter-wangxu / persist-queue

A thread-safe disk based persistent queue in Python
BSD 3-Clause "New" or "Revised" License
335 stars 50 forks source link

What if data is already serialized #187

Closed dineshbvadhia closed 2 years ago

dineshbvadhia commented 2 years ago

Wrt file-based queues, if the data items for q.put(item) are already serialized (in my case, with json or msgpack) then what are the options with persist-queue ?

peter-wangxu commented 2 years ago

persist-queue supports both, either raw object or serialized. you can choose based on your needs

dineshbvadhia commented 2 years ago

Looking at the code, raw = True|False is available in the sql get/put functions but not for file-based queues ?