infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Encrypted SQLite SMAT DB query performance
Jeff Dinsmore
I'm re-working some scripts that index SMAT files to use SMAT DB instead.
All preliminary work was done on a test, unencrypted SMAT DB and all worked fine.
Now that I have a pilot build that uses encrypted SMAT DB, it's showing numbers that are 6-8 times slower. That won't get the job done.
Is anyone doing similar things with SMAT DB?
Are you seeing a substantial hit for queries into encrypted SQLite DBs?
Thanks,
Jeff.
Find more posts tagged with
Clovertech
Comments
Max Drown
What is it you're doing that is slower?
Are you using PRAGMA KEY to decrypt?
Jeff Dinsmore
In a Tcl script - decrypting using the sqlite3 "-key" option when opening a SMAT DB file.
The script is doing simple queries.
such as:
select MIN(Time),MAX(Time) from smat_msgs
select MidDomain,MidHub,MidNum,Time,rowid from smat_msgs
These examples are regularly taking 300-500 milliseconds.
Combined processing time for indexing a SMAT DB file is in the neighborhood of a full second.
The prior code working with SMAT files runs in about a tenth of that time.
Thanks,
Jeff.
Max Drown
How many records are in the db?
Jeff Dinsmore
Looks like it's ranging from about 6000 up to 9000 ADT messages for a DB that's been auto-cycled at 50 MB.
I've tried SMAT DBs with a few hundred messages and it's a little faster, but not enough.