Good use cases for Jig?

99 views
Skip to first unread message

Nuwanda

unread,
Aug 30, 2017, 2:02:08 AM8/30/17
to Fat-Free Framework
How are people using it? A good way to store JSON?

Can it be cached? I'm wondering if it can be used as a simple Mongo without the overhead.

ved

unread,
Aug 30, 2017, 2:09:57 PM8/30/17
to Fat-Free Framework
The mapper works like the other sql and mongo mappers so there's also a $ttl parameter that you can use to cache query results.

As for what it can be used for.. I guess pretty much anything that's doable with a file based database like sqlite but with a NoSQL twist to it.

It can be used as a very simple mongo but lacks most of the more advanced features of mongo.

Disclaimer: I haven't used it personally and wouldn't really recommend it for most things unless it's a really simple app with low data size.

ikkez

unread,
Aug 30, 2017, 4:14:00 PM8/30/17
to Fat-Free Framework
I use Jig for config tables, where one should be able to edit system settings via a frontend. As it'll save to json files, it can easily be edited by hand as well if something breaks your application.

Nuwanda

unread,
Aug 30, 2017, 5:20:29 PM8/30/17
to Fat-Free Framework
The manual editing is a nice feature.

ved

unread,
Aug 30, 2017, 5:57:44 PM8/30/17
to Fat-Free Framework
Good tip. I've been using the Template/Preview classes to output ini files for this kind of stuff but I rarely need too many editable settings.
For more complex configuration settings where filtering or searching could help, that would be a really good use case for Jig.

Summer White

unread,
Sep 8, 2017, 8:35:24 AM9/8/17
to Fat-Free Framework
I used to use rational databases such as mysql and sqlite but have completely moved to flat file in my later projects.

I work a heck of a lot with arrays of data. Keeping it in straight JSON format is the simplest and easiest and if I want the extra power I often use JIG.

But my applications rely hardly on performance. I used to be hardcore into performance but now days I don't really care about the extra few milliseconds it takes to process data...

And now that I deal with super basic data structures my code is a lot more manageable. I havn't touched a rational database all year yay!
Reply all
Reply to author
Forward
0 new messages