-
Notifications
You must be signed in to change notification settings - Fork 103
Specify exactly what globbing patterns are allowed #147
Comments
Related: do we have any more history on globbing besides c26141e ? @dmitrizagidulin |
I've been around solid a long time, and I've probably looked at every app ever made. I've never seen anything other than I think that is how it was supposed to be. Basically we organized things like putting stuff in a per monthly folder and so on. It would just be a pain to get every item from every day, which could be 100s. Also the queries change a bit. I was a bit perplexed when I saw that globbing could be used as /foo* type queries. Because why would you do that? It seems overkill, and using it 'just because you can'. Better to design your app's data not to need it. I might have seen @bblfish once make an argument around generic globbing, but unsure anything came of it. @deiu may also have some back ground on this. I do think there is a path towards deprecating globbig, for more efficient methods, but I'd like to see that over a long period of time. And simple server side testing is not going to catch all the issues. I dont mind turning off globbing if everyone agrees its not needed anymore because we have something better. |
Recursive? I dont think it has ever been recursive, has it? |
@melvincarvalho Thanks, this is super important. Questions:
|
No
No
No This is really how I thought globbing worked. The idea is that how you fetch stuff influences how you design the data layout of your app. Once you get beyond simple apps, say for a social network or chat that grows over time, you need to archive things daily, monthly, yearly etc. Your ability to fetch from this kind of folder will influence the design of your data shapes and also your app. It may be self evident that you could have 100s of items in a monthly LDPC, and that works well with globbing. That was the need for which is was introduced. Any other need, I dont see right now, and looks to me like feature creep. Id genuinely be interested if there's a use case out there. |
Thanks so much. PR forthcoming (which I will leave open for a bit until everyone agrees on the above answers). This changes a lot 🙂 I have always seen the complex implementation of globbing (with multiple stars on arbitrary places and thus recursion). I'm opposed to including that; way less opposed to a "concatenate all in folder", which is what the current "globbing" does. |
Ah right you should run this by @timbl because he uses the yyyy/mm/dd pattern so I could see he might want However I've always used the yyyymmdd/ pattern for this very reason. A single glob is a nice to have, but 2 seems self indulgent! :) |
@melvincarvalho Thanks, invited you and @timbl to review #148. |
I'm not sure. I've never used it. |
The spec does not specify what globbing patterns it allows. Is it just a single
*
at the end, or possibly more?It does say that:
Inspired by solid/solid#253 (comment) (@melvincarvalho)
The text was updated successfully, but these errors were encountered: