Reduce db access 14/265514/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Oct 2021 07:54:34 +0000 (16:54 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 21 Oct 2021 09:28:08 +0000 (09:28 +0000)
commit9777ef7372b319d3d05e056c1d9e7fa48b2fd010
tree749487d1a766a9e72ec41f8577caab73dd20dceb
parent607d80feeb17b90bd8b403df2bdb1d91f8c0be11
Reduce db access

To improve initialization performance, this patch reduces to access to
the pkgmgr db. Before loading all applications information, AMD creates
the app property handle of the user. After this patch is applied, AMD
does not load the metadata information while calling _app_property_load().
The metadata will be inserted when a new appinfo is inserted automatically
at the initialization time.

Change-Id: I48917276ff870b2b98591780d0b13e9825cf6d67
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_app_property.c
src/lib/amd_app_property.h
src/lib/amd_appinfo.c
src/lib/amd_login_monitor.c