Closed MiladAlshomary closed 6 years ago
@MiladAlshomary how large is that value, in elements and kBs? How long does pickling it take? (sqlitedict uses pickle internally to serialize the values)
@piskvorky The values are not big. they are less than 1 kbyte. One thing I was wondering about, if the created sqllite table has already an index over they key column?
@MiladAlshomary it should be according to
MAKE_TABLE = 'CREATE TABLE IF NOT EXISTS "%s" (key TEXT PRIMARY KEY, value BLOB)' % self.tablename
Sure, it does. A key-value store without an index on the key wouldn't be very useful :-)
If you send a minimal reproducing example, we'll have a look. Thanks.
Hi, it seems like the issue is not reproducible. Something went wrong with the db connection I believe. Now its working properly, retrieving the value of a key takes milli seconds
@MiladAlshomary aha, OK, thanks for the information.
I have a sqllite dictionary contains 4.2 million key. Each value is a list of pyspark sparsevector
Trying to retrieve the value of a specific key takes around 3 seconds! any known issue related?