Тёмный

Mastering Field Indexing within Claris/FileMaker Pro 

ISO FileMaker Magazine
Подписаться 11 тыс.
Просмотров 3,5 тыс.
50% 1

Video brought to you by www.filemakerm...
If your database size seems like it's growing out of control, then you may be faced by one of the downsides of default FileMaker settings. Field indexing. If you don't take the time to understand the true workings of the FileMaker field index, then you may not be optimizing as much as possible. Maybe your solution could be just a bit faster and certain fields currently indexed may not need to be.
This video has information you need in order to fully understand and visualize the impacts of FileMaker field indexing.

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@Attila_G
@Attila_G Год назад
Your statement at 24:20 ("I couldn't just search for editor") is wrong. Of course you can search for "editor", because it stands at the beginning of a word. You can also search for a part of a word (e.g. magazine), but as always you need the search term "*magazine*". Here I see no difference between minimal and all index. The difference between Unicode and a language setting is the word break characters when indexing and that Unicode is case sensitive.
@filemakermagazine
@filemakermagazine Год назад
Yes, you are correct. You can always use search operators and you can also search unindexed fields as well. I was probably thinking about something else and made the mistake of saying you can't search for part of the email. Most of my personal search implementations utilize a "single field search" a la Google style. This implies that neither the end user nor the developer will be using search operators. Thus, if you do switch to unicode, and you're not going to rely on QuickFind, you will still find yourself (in some cases) needing to implement an automated way for a query to integrate search operators if you're going to present a user with a single field for searching. For example, using an OnObjectExit or OnObjectSave and, using a script in order to introduce search operators which many users are unfamiliar with. Again, thanks for pointing this out and it wasn't my intention to mislead people into thinking it can't be done. So, to all you newer developers out there... You can ALWAYS search on any field (indexed or unindexed - indexed will be faster of course) and you can always use the native search operators. You can also search using SQL (translated from SQL into native FileMaker search) and then there's Quick Find. Thanks for pointing it out. I also had another long-time subscriber Ralph L point this out. Thanks again!
@filemakermagazine
@filemakermagazine Год назад
Further clarification. The likely reason I made the mistake about saying I could not find 'editor' within editor@filemakermagazine.com was actually based on the inverse situation. If you try to search for 'editor@filemakermagazine.com' (the full string) directly on a field set to a language other than Unicode AND the index is either Minimal or All, you won't get any results because the @ symbol is interpreted as a search operator. I needed users to be able to simply paste in the full email address and have the @ symbol seen as an @ symbol - not something that translates to 'any one character'. Hence going to Unicode sees the @ as part of the string but then case sensitivity comes into play. The test is this: Create a field called email. Put any email value within it and then try to search for the full email substring. The ONLY way you'll get a result is if you search for 'email\@example.com' because you have to escape the @ symbol because it is used as a search operator and won't find itself. Thus, the only solutions for being able to find a full email string is to A) use Unicode and either UPPER() or LOWER() on both sides, data storage and query construction or B) integrate automated search operators or escaping or C) teach users how to use the search operators or D) create your own custom automated search which will adjust/account for word break characters and escape them or inject search operators. Interestingly, it looks like Claris may have made a fix or change to Quick Find. I was able to get results when searching for a full email string with the @ included. I seem to remember at some time this not working - but it could just be me getting along in years. :)
@Attila_G
@Attila_G Год назад
Hi Matt, after talking to other Filemaker developers about this yesterday and someone reporting a performance issue with Minimal Index, I did a little test today: I have a "small" DB with only a few fields, but with 1.6 million records. It has one field which contains a UUID. All speed tests are done with this ID field and I always searched only at the beginning of the field. Here are the results: Indexing ID field = None / Unicode File size = 290MB Searching for the whole or a part of the UUID took on average 8.7 seconds. Indexing ID field = None / English File size = 290MB Searching for the whole or a part of the UUID took on average 12 seconds. Indexing ID field = Minimal / Unicode File size = 502MB Searching for all or part of the UUID took 9 seconds on average. Indexing ID field = Minimal / English File size = 502MB Searching for the whole or a part of the UUID took 11.5 seconds on average. Indexing ID field = All / no matter if Unicode or English File size = 715MB Searching for the whole or a part of the UUID took 0 seconds! (I could not measure time manually => it was instantly!) For me it is not obvious what Minimal Indexing does exactly!? Especially because the search in the not indexed ID field was nearly identically fast than with a Minimal Index...!
@DUMB10987
@DUMB10987 Год назад
Thank you for sharing. What do you do about files which were created a while back to reset the indexing
@ausaras
@ausaras Год назад
I rarely comment but this is excellent content! Learned something about FileMaker that will make a big difference.
@filemakermagazine
@filemakermagazine Год назад
It always pays to know exactly how something is working and how it might impact your decisions related to it. I'm glad it's proving helpful! Thanks for the comment.
@willbullard1692
@willbullard1692 Год назад
Very insightful. What might be a good follow-up would be to have a file with a lot of records and change the indexes to show how the indexes actually impact performance.
@filemakermagazine
@filemakermagazine Год назад
The test would need to be something where you move a lot of fields which may be set to an All (word index) to Minimal (value index) when only the value index is required. Given that the biggest impact is likely the file size, the biggest issue with regards to performance is the fact that Quick Find is on every field by default. This type of search, in most cases, is the likely culprit of any performance related issues. Even if you have all fields set to a full word index setting, the fact that the data is likely sitting on a fast SSD disk and is retrieved server side means that performance is likely not that much different. If you were on a spinning disk this would be a different case. But, even still, searching more fields than necessary, across more data than necessary (e.g. accidental word indices vs. suitable value indices) is always an area where things can be optimized.
@andreizhitkov5012
@andreizhitkov5012 Год назад
Thank you, Matt, for this deep dive into a seemingly familiar feature.
@filemakermagazine
@filemakermagazine Год назад
Thank you for the feedback! I'm glad it's proving helpful to some for understanding how field level indexing works in FileMaker.
@mk.h
@mk.h Год назад
Thank you. Learned something new. 👍
@filemakermagazine
@filemakermagazine Год назад
Awesome!
Далее
New Ultimate Display Power in FileMaker
29:12
Просмотров 3,4 тыс.
FileMaker: How-To use Portal Filtering
31:33
Просмотров 10 тыс.
荧光棒的最佳玩法UP+#short #angel #clown
00:18
"Когти льва" Анатолий МАЛЕЦ
53:01
My Default FileMaker Fields - How I use them.
56:22
Просмотров 2,8 тыс.
12 Tips for Developing in FileMaker Pro
38:47
Просмотров 9 тыс.
Using Script Triggers in Claris/FileMaker
42:23
Просмотров 2,9 тыс.
Mastering FileMaker’s Find Mode
43:48
Просмотров 3,1 тыс.
Claris FileMaker 2023 (v20) - New Features and more
52:48
What you don't know about Table View in FileMaker
1:02:44
FileMaker Reporting Fundamentals - Summaries & More
52:46
3 key uses for FileMaker Portals
53:38
Просмотров 12 тыс.
Searches without Find Mode in FileMaker
51:17