Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from Microsoft/feature/performance-improvements
Browse files Browse the repository at this point in the history
Performance fixes and Geofence Bug Fix
  • Loading branch information
MustafaLeithy authored Feb 8, 2018
2 parents 4cdd0a7 + 39be65f commit cb335de
Show file tree
Hide file tree
Showing 19 changed files with 350 additions and 127 deletions.
9 changes: 5 additions & 4 deletions Backend/src/Trackable.EntityFramework/GeoFenceUpdateData.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;

namespace Trackable.EntityFramework
{
[Table("GeoFenceUpdates")]
public class GeoFenceUpdateData : EntityBase<int>
{
[Required]
[Index("IX_GeoFenceDataId")]
[Index("GeoFenceAssetUnique", IsUnique = true, Order = 0)]
public int GeoFenceDataId { get; set; }

[Required]
[Index("IX_AssetDataId")]
[Index("GeoFenceAssetUnique", IsUnique = true, Order = 1)]
public string AssetDataId { get; set; }

[Required]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace Trackable.EntityFramework.Migrations
{
using System;
using System.Data.Entity.Migrations;

public partial class GeofenceUpdatesUniqueGeofenceId : DbMigration
{
public override void Up()
{
DropIndex("dbo.GeoFenceUpdates", new[] { "GeoFenceDataId" });
DropIndex("dbo.GeoFenceUpdates", new[] { "AssetDataId" });

//For uniqueness constraint to pass
Sql(@"
DELETE FROM GeoFenceUpdates
WHERE Id <> (SELECT max(Id)
FROM GeofenceUpdates g2
WHERE g2.GeoFenceDataId = GeoFenceUpdates.GeoFenceDataId and g2.AssetDataId = GeoFenceUpdates.AssetDataId)");

CreateIndex("dbo.GeoFenceUpdates", new[] { "GeoFenceDataId", "AssetDataId" }, unique: true, name: "GeoFenceAssetUnique");
CreateIndex("dbo.GeoFenceUpdates", "GeoFenceDataId");
CreateIndex("dbo.GeoFenceUpdates", "AssetDataId");
}

public override void Down()
{
DropIndex("dbo.GeoFenceUpdates", new[] { "AssetDataId" });
DropIndex("dbo.GeoFenceUpdates", new[] { "GeoFenceDataId" });
DropIndex("dbo.GeoFenceUpdates", "GeoFenceAssetUnique");
CreateIndex("dbo.GeoFenceUpdates", "AssetDataId");
CreateIndex("dbo.GeoFenceUpdates", "GeoFenceDataId");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Target" xml:space="preserve">
<value>H4sIAAAAAAAEAO1dW2/cOJZ+X2D/Q6GedhsZl53uWfQE9gzcTjptTBIbKWezb4FcostCq6QaXdI2FvPL9mF/0v6FJXXl5fAmUVJVuRAgcInkIXn48fCQPOfw//7nf8//9rQJZ99RkgZxdDE/Ozmdz1C0iv0gWl/M8+zhTz/P//bXf/2X83f+5mn2n3W+H0k+XDJKL+aPWbZ9s1ikq0e08dKTTbBK4jR+yE5W8Wbh+fHi9enpXxZnZwuEScwxrdns/HMeZcEGFT/wz6s4WqFtlnvhx9hHYVp9xynLgursk7dB6dZboYv5XeKtfvfuQ3TyDtPInn9NcNofcfL7fHYZBh5u0BKFD/OZF0Vx5mW4uW++pGiZJXG0Xm7xBy+8e94inO/BC1NUdeNNm920R6evSY8WbcGa1CpPs3hjSfDsx4pFC754J0bPGxZiJpaMIr0uGHkxv0xTlN0m8RYlWYDSt17mzWd8vW+uwoSUUbD8BCD0aibN/qoBEMYZ+fdqdpWHWZ6giwjlWeKFr2a3+X0YrP6Onu/i31F0EeVhSPcF9wanMR/wp6oFz5/RQ9XDa38+W7DlFnzBphhVpuzwdZT9+Ho++4QrJ/1ooEIxZ5nFCXqPIpR4GfJvvSxDSURooKLPQu1cXQXjfkPB+jGrK30b464jo4JfAz977FDuA4rWnQp+7drSyyc8nTm2GhTDEApCjBX7kku0CepSv8RxiLzIqNxH7+l94vkBHr4O3fwYR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vDiVTLXdLP51KpzliheHhczhRD83CXXdQeCgHE6OQBsMO/VGoCItWpl9suTo4vxkwXZI7ckNfhxGL3UVV/64/uukkbaqg6KzXoYJoN7c+KprMJu9Dxejet6DNkXdm9sbsCbNb2QtV/hZXGvo66iewzsJUbVOQNzwrISkvCCq1B1wBI4I5dGg40350ywWg+GBgu7T0jCosbTf9FqxxnAnGM7kqNQ5SHGZPoipbaQy9m6KWimZWE833FmIoye78P8EBhACAxAaCa3H5UdJs/vCxKth/7z3bZLTY0641uvIdcCPmj1pJI+9UhO4obWiUTxDvc7iM3UDeFx+ibtPNFeSxcfcA/hUfnzxef84jEvCt/vUVpsG5JnGOaEVoxd55NnuvoIa7vXrkW1Vn4oP8o83xympZkwYO3Ike0K5SmxeNoRZBBEpLzHvnX0U2ebfOMCI3NffhMM4Nc4arqP18IbT6/KUIspy66gJsZkBOem+iXPAj9pt2/AkHOJCTI3XAVWpCMZUZCDK6fG0qfijehTAhV7GuutO/QZhuSNesmWnokyKJ92zB08arrrZ5vm1cAZUT0A8Gy/fxt4K0Tb5NWNNry+CfGsL95+uv/Awjwwg7bTQEA</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@
<Compile Include="Migrations\201711131016182_CreateTokenTable.Designer.cs">
<DependentUpon>201711131016182_CreateTokenTable.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201802071124064_GeofenceUpdates-UniqueGeofenceId.cs" />
<Compile Include="Migrations\201802071124064_GeofenceUpdates-UniqueGeofenceId.Designer.cs">
<DependentUpon>201802071124064_GeofenceUpdates-UniqueGeofenceId.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SqlTypeHelper.cs" />
Expand Down Expand Up @@ -249,6 +253,9 @@
<EmbeddedResource Include="Migrations\201711131016182_CreateTokenTable.resx">
<DependentUpon>201711131016182_CreateTokenTable.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201802071124064_GeofenceUpdates-UniqueGeofenceId.resx">
<DependentUpon>201802071124064_GeofenceUpdates-UniqueGeofenceId.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Trackable.Common\Trackable.Common.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public TrackableDbContext(string connString) : base(connString)
public DbSet<AssetPropertiesData> AssetProperties { get; set; }

public DbSet<DeploymentIdData> DeploymentId { get; set; }

public DbSet<TokenData> Tokens { get; set; }

public override int SaveChanges()
Expand Down
2 changes: 2 additions & 0 deletions Backend/src/Trackable.Models/GeoFenceUpdate.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using System;
using Trackable.Models.Helpers;

namespace Trackable.Models
{
public class GeoFenceUpdate : ModelBase<int>
{
[Mutable]
public NotificationStatus NotificationStatus { get; set; } = NotificationStatus.Unknown;

public DateTime UpdatedAt { get; set; }
Expand Down
Loading

0 comments on commit cb335de

Please sign in to comment.