Commit Graph

2 Commits

Author SHA1 Message Date
Stanislau Hlebik
27d46fd45c mononoke: change the schema of bookmarks table
Summary:
Bump bookmark size limit - we use 512 for infinitepush, let's use the same
here. Also add a primary key

Reviewed By: farnz

Differential Revision: D7534967

fbshipit-source-id: aeef926de910a3a9934fb1588778f8f503821071
2018-04-09 08:03:51 -07:00
Stanislau Hlebik
7e3daf753c mononoke: implement bookmarks using diesel
Summary:
Implementation of the bookmarks trait using diesel. Currently it's quite slow
because it uses mutex to make the struct sync. Also it's not really async, even
though it returns future. The plan to make it async is to move the computation
on a separate thread pool.

Reviewed By: kulshrax

Differential Revision: D7255935

fbshipit-source-id: ce622a14af777ae470aecc039cef8c6cab9db41e
2018-03-21 14:24:43 -07:00